Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Dave Foote
/
CAPP30254-1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
79d5d765
authored
May 02, 2019
by
Dave Foote
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HW3 ready for submission
parent
8d17acbe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
5 deletions
hw3/MLHW3.pdf
hw3/donors_choose.ipynb
hw3/rayids_mlhelpers.py
hw3/MLHW3.pdf
0 → 100644
View file @
79d5d765
File added
hw3/donors_choose.ipynb
View file @
79d5d765
...
...
@@ -11,13 +11,14 @@
},
{
"cell_type": "code",
"execution_count":
1
,
"execution_count":
56
,
"metadata": {},
"outputs": [],
"source": [
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"from scipy import stats\n",
"import pipe_lib as pl\n",
"import donation_analysis as don"
]
...
...
@@ -1251,8 +1252,24 @@
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Below is how I convert scores to percentile rankings in my evaluate functions:"
]
},
{
"cell_type": "code",
"execution_count": 58,
"metadata": {},
"outputs": [],
"source": [
"best =list(stats.rankdata(best, 'average')/len(best))"
]
},
{
"cell_type": "code",
"execution_count":
3
9,
"execution_count":
5
9,
"metadata": {},
"outputs": [
{
...
...
hw3/rayids_mlhelpers.py
View file @
79d5d765
...
...
@@ -18,9 +18,9 @@ import random
from
scipy
import
optimize
import
time
import
seaborn
as
sns
from
mlfunction
s
import
*
from
rayids_mlhelper
s
import
*
from
sklearn.metrics
import
roc_curve
,
auc
,
classification_report
,
confusion_matrix
from
sklearn
import
preprocessing
,
model_selection
,
svm
,
metrics
,
tree
,
decomposition
,
svm
,
grid_seach
from
sklearn
import
preprocessing
,
model_selection
,
svm
,
metrics
,
tree
,
decomposition
,
svm
from
sklearn.ensemble
import
RandomForestClassifier
,
ExtraTreesClassifier
,
GradientBoostingClassifier
,
AdaBoostClassifier
from
sklearn.linear_model
import
LogisticRegression
,
Perceptron
,
SGDClassifier
,
OrthogonalMatchingPursuit
,
RandomizedLogisticRegression
from
sklearn.neighbors.nearest_centroid
import
NearestCentroid
...
...
@@ -28,7 +28,6 @@ from sklearn.naive_bayes import GaussianNB, MultinomialNB, BernoulliNB
from
sklearn.tree
import
DecisionTreeClassifier
from
sklearn.neighbors
import
KNeighborsClassifier
from
sklearn.model_selection
import
train_test_split
from
sklearn.model_selection
import
ParameterGrid
from
sklearn.metrics
import
*
from
sklearn.preprocessing
import
StandardScaler
import
itertools
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment