Coder Social home page Coder Social logo

alphaolomi / highschool-dropout-prediction Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 19 KB

highschool-dropout-prediction

Jupyter Notebook 100.00%
artificial-intelligence machine-learning education school mother father ipython-notebook high-school dropout-probability

highschool-dropout-prediction's Introduction

highschool-dropout-prediction

highschool-dropout-prediction's People

Contributors

alphaolomi avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

highschool-dropout-prediction's Issues

Execute the 'train_predict' function for each classifier and each training set s...

"# TODO: Execute the 'train_predict' function for each classifier and each training set size\n",
"# train_predict(clf, X_train, y_train, X_test, y_test)\n",
"\n",
"classifiers = [clf_A, clf_B, clf_C]\n",
"training_subsets = [(X_train_100, y_train_100), (X_train_200, y_train_200), \n",
" (X_train_300, y_train_300)]\n",


This issue was generated by todo based on a TODO comment in 754e129. It's been assigned to @alphaolomi because they committed the code.

Perform grid search on the classifier using the f1_scorer as the scoring method\...

"# TODO: Perform grid search on the classifier using the f1_scorer as the scoring method\n",
"grid_obj = GridSearchCV(clf, parameters, scoring=f1_scorer)\n",
"grid_obj_dt = GridSearchCV(clf_dt, parameters_dt, scoring=f1_scorer)\n",
"\n",
"# TODO: Fit the grid search object to the training data and find the optimal parameters\n",
"grid_obj = grid_obj.fit(X_train, y_train)\n",


This issue was generated by todo based on a TODO comment in 754e129. It's been assigned to @alphaolomi because they committed the code.

'` statement. Please be sure to read the instructions carefully!\n",

"Welcome to the second project of the Machine Learning Engineer Nanodegree! In this notebook, some template code has already been provided for you, and it will be your job to implement the additional functionality necessary to successfully complete this project. Sections that begin with **'Implementation'** in the header indicate that the following block of code will require additional functionality which you must provide. Instructions will be provided for each section and the specifics of the implementation are marked in the code block with a `'TODO'` statement. Please be sure to read the instructions carefully!\n",
"\n",
"In addition to implementing code, there will be questions that you must answer which relate to the project and your implementation. Each section where you will answer a question is preceded by a **'Question X'** header. Carefully read each question and provide thorough answers in the following text boxes that begin with **'Answer:'**. Your project submission will be evaluated based on your answers to each of the questions and the implementation you provide. \n",
"\n",
">**Note:** Code and Markdown cells can be executed using the **Shift + Enter** keyboard shortcut. In addition, Markdown cells can be edited by typically double-clicking the cell to enter edit mode."
]


This issue was generated by todo based on a TODO comment in 754e129. It's been assigned to @alphaolomi because they committed the code.

Fit the grid search object to the training data and find the optimal parameters\...

"# TODO: Fit the grid search object to the training data and find the optimal parameters\n",
"grid_obj = grid_obj.fit(X_train, y_train)\n",
"grid_obj_dt = grid_obj_dt.fit(X_train, y_train)\n",
"\n",
"\n",
"print grid_obj_dt.best_params_\n",


This issue was generated by todo based on a TODO comment in 754e129. It's been assigned to @alphaolomi because they committed the code.

Make an f1 scoring function using 'make_scorer' \n",

"# TODO: Make an f1 scoring function using 'make_scorer' \n",
"f1_scorer = make_scorer(f1_score, pos_label='yes')\n",
"\n",
"# TODO: Perform grid search on the classifier using the f1_scorer as the scoring method\n",
"grid_obj = GridSearchCV(clf, parameters, scoring=f1_scorer)\n",
"grid_obj_dt = GridSearchCV(clf_dt, parameters_dt, scoring=f1_scorer)\n",


This issue was generated by todo based on a TODO comment in 754e129. It's been assigned to @alphaolomi because they committed the code.

Create the parameters list you wish to tune\n",

"# TODO: Create the parameters list you wish to tune\n",
"parameters = {}\n",
"parameters_dt = {'min_samples_split':(2,3,4,5,6,7,8,9,10, 11, 12), \n",
" 'max_depth' :(1,2,3,4,5,6,7,8,9,10),\n",
" 'splitter': ('best', 'random')}\n",
"\n",


This issue was generated by todo based on a TODO comment in 754e129. It's been assigned to @alphaolomi because they committed the code.

Shuffle and split the dataset into the number of training and testing points abo...

"# TODO: Shuffle and split the dataset into the number of training and testing points above\n",
"X_train, X_test, y_train, y_test = train_test_split(\n",
" X_all, y_all, stratify=y_all, test_size=95, random_state=0)\n",
"\n",
"# Show the results of the split\n",
"print \"Training set has {} samples.\".format(X_train.shape[0])\n",


This issue was generated by todo based on a TODO comment in 754e129. It's been assigned to @alphaolomi because they committed the code.

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.