Code Monkey home page Code Monkey logo

2022-assignment-sklearn's Introduction

Assignment 3 for the DataCamp course X-DataScience Master - scikit-learn API

What we want you to check that you know how to do by doing this assignment:

  • Use Git and GitHub
  • Work with Python files (and not just notebooks!)
  • Do a pull request on a GitHub repository
  • Format your code properly using standard Python conventions
  • Make your code pass tests run automatically on a continuous integration system (GitHub actions)
  • Understand how to code scikit-learn compatible objects.

How?

  • Fork the repository by clicking on the Fork button on the upper right corner
  • Clone the repository of your fork with: git clone https://github.com/MYLOGIN/datacamp-assignment-sklearn (replace MYLOGIN with your GitHub login)
  • Create a branch called MYLOGIN using git checkout -b MYLOGIN
  • Make the changes to complete the assignment. You have to modify the files that contain questions in their name. Do not modify the files that start with test_. - Check locally that your solution meet the test by running pytest from the root of the repo. You may need to install pytest using pip or conda.
  • Check the code formating for your solution using flake8. You may need to install flake8 using pip or conda.
  • Open the pull request on GitHub:
    • Create a commit with git add -u and git commit -m "UP my solution"
    • Push your branch on your fork: git push -u origin MYLOGIN
    • Go to your repo in your browser and click the Open a PR button.
  • Keep pushing to your branch until the continuous integration system is green.
  • When it is green notify the instructors on Slack that your done.

Your mission

  • You should implement a scikit-learn estimator for the KNearestNeighbors class. This corresponds to implementing the methods fit, predict and score of the class in sklearn_questions.py.
  • You should implement a scikit-learn cross-validator for the MonthlySplit class. This corresponds to implementing the methods get_n_splits and split of the class in sklearn_questions.py.

Getting Help

If you need help ask on the Slack of the Datacamp course.

2022-assignment-sklearn's People

Contributors

tommoral avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.