Skip to content

Instantly share code, notes, and snippets.

@tugloo1
Created January 27, 2018 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tugloo1/ed68562e24fd5cda97f2f2960ff9fa43 to your computer and use it in GitHub Desktop.
Save tugloo1/ed68562e24fd5cda97f2f2960ff9fa43 to your computer and use it in GitHub Desktop.
/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Applications/PyCharmOld.app/Contents/helpers/pydev/pydevd.py --multiproc --qt-support --client 127.0.0.1 --port 54837 --file /Users/piyushgupta/projects/udacityintroML/final_project/poi_id.py
pydev debugger: process 6180 is connecting
Connected to pydev debugger (build 143.2371)
/Library/Python/2.7/site-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
"This module will be removed in 0.20.", DeprecationWarning)
total number of data points: 146
total number of people in dataset: 146
total number of poi: 18
total number of not poi: 128
There are 21 features for each person in the dataset, and 20 features are used
the number of NaN values for features in our dataset:
salary 51
to_messages 60
deferral_payments 107
total_payments 21
loan_advances 142
bonus 64
email_address 35
restricted_stock_deferred 128
total_stock_value 20
shared_receipt_with_poi 60
long_term_incentive 80
exercised_stock_options 44
from_messages 60
other 53
from_poi_to_this_person 60
from_this_person_to_poi 60
poi 0
deferred_income 97
expenses 51
restricted_stock 36
director_fees 129
/Library/Python/2.7/site-packages/sklearn/feature_selection/univariate_selection.py:114: RuntimeWarning: divide by zero encountered in divide
f = msb / msw
loan_advances inf
other 1827.39722119
bonus 755.381741136
deferred_income 281.946838365
from_this_person_to_poi 248.887264146
from_messages 72.0779268543
long_term_incentive 51.4290624048
from_poi_to_this_person 42.7648049446
total_payments 23.6872856362
shared_receipt_with_poi 21.6858449289
to_messages 21.0313241978
restricted_stock 16.3156023894
poi 5.07608038976
deferral_payments 2.66401556027
total_stock_value 2.4280909266
expenses 1.6730987173
exercised_stock_options 1.29203392639
director_fees 0.130008880377
restricted_stock_deferred 0.0170725568339
Process finished with exit code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment