-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Migrated entire Codebase to Python-3 with Documentation #302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b84cff6
Refer ChangeLog: Lecture 01
898c0eb
Refer ChangeLog: Lecture 02
c71cd2c
Refer ChangeLog: Lecture 03
7602cdf
Refer ChangeLog: Lecture 06
9a14c84
Refer ChangeLog: Lecture 07
afc1567
Refer ChangeLog: Lecture 08
639f3be
Refer ChangeLog: Lecture 09
3be0c63
Refer ChangeLog: Lecture 11
29c8a74
Refer ChangeLog: Lecture 12
624636a
Refer ChangeLog: Lecture 13
4627d16
Initial Commit: .gitignore
3d7e64c
Initial Commit: ReadMe
104d2ba
Initial Commit: Requirements.TXT
5bcfc70
Initial Commit: ChangeLog by iSiddharth
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,3 +8,5 @@ text_learning/your_email_authors.pkl | |
| my_classifier.pkl | ||
| my_dataset.pkl | ||
| my_feature_list.pkl | ||
| .DS_Store | ||
| __pycache__ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,111 @@ | ||
| # Change Log | ||
| * All notable changes to this project will be documented in this file. | ||
| * Lecture wise File Specific changes are also mentioned. | ||
|
|
||
|
|
||
| ## Common Changes to All Files | ||
| - Migrated all codes to Python-3. | ||
| - Updated Shabang to '#!/usr/bin/python3'. | ||
| - Updated Libraries to support Python 3.6 or higher. | ||
| - Added Python-3 version of Course Quiz questions. (In Some Cases). | ||
| - Updated 'readme.md' | ||
| - Updated 'requirements.txt'. | ||
| - Updated '.gitignore'. | ||
| - Added 'Changelog.md' | ||
|
|
||
| ## Lecture 1 : Intro to Machine Learning | ||
| ### tools/startup.py | ||
| - Updated printing the file size from '423 MB' to '1.82 GB' as the Dataset has been Updated. | ||
| - Updated code for downloading 'enron_mail_20150507.tar.gz' using 'requests' instead of 'urllib'. | ||
| - Updated code for extracting 'enron_mail_20150507.tar.gz' for Python-3. | ||
|
|
||
| ### tools/email_preprocess.py | ||
| - 'joblib' used instead of 'Pickle' and 'cPickle'. | ||
| - 'model_selection.train_test_split' used instead of 'cross_validation.train_test_split'. | ||
|
|
||
|
|
||
| ## Lecture 2 : Naive Bayes | ||
| ### naive_bayes/nb_author_id.py | ||
| - Added Python-3 code to print Training and Predicting Time for Course Quiz. | ||
|
|
||
|
|
||
| ## Lecture 3 : SVM | ||
| ### svm/svm_author_id.py | ||
| - Added the Fix for Indexing Issue in slicing 1% of Training Data. | ||
|
|
||
|
|
||
| ## Lecture 4 and Lecture 5 | ||
| - No Special Changes | ||
|
|
||
|
|
||
| ## Lecture 6 : Dataset and Questions | ||
| ### datasets_questions/explore_enron_data.py | ||
| - 'joblib' used instead of 'Pickle'. | ||
|
|
||
| ### tools/feature_format.py | ||
| - 'joblib' used instead of 'Pickle' | ||
|
|
||
|
|
||
| ## Lecture 7 : Regression | ||
| ### regression/finance_regression.py | ||
| - 'joblib' used instead of 'Pickle'. | ||
| - Updated reading mode of '.pkl' file from 'r' to 'rb' to resolve file reading issue. | ||
| - 'model_selection.train_test_split' used instead of 'cross_validation.train_test_split'. | ||
| - Added 'sort_keys' parameter to Line 26 as mentioned in the Course for Python-3 Compatibility. | ||
|
|
||
|
|
||
| ## Lesson 8 : Outliers | ||
| ### outliers/enron_outliers.py | ||
| - 'joblib' used instead of 'Pickle'. | ||
| - Updated reading mode of '.pkl' file from 'r' to 'rb' to resolve file reading issue. | ||
|
|
||
|
|
||
| ### outliers/outlier_removal_regression.py | ||
| - 'joblib' used instead of 'Pickle'. | ||
| - Updated reading mode of '.pkl' file from 'r' to 'rb' to resolve file reading issue. | ||
| - 'model_selection.train_test_split' used instead of 'cross_validation.train_test_split'. | ||
|
|
||
|
|
||
| ## Lesson 9 : Clustering | ||
| ### k_mean/k_means_cluster.py | ||
| - 'joblib' used instead of 'Pickle'. | ||
| - Updated reading mode of '.pkl' file from 'r' to 'rb' to resolve file reading issue. | ||
|
|
||
|
|
||
| ## Lecture 10 | ||
| - No Special Changes | ||
|
|
||
|
|
||
| ## Lecture 11 : Text Learning | ||
| ### tools/parse_out_email_text.py | ||
| - Updated 'string' syntax for Python-3 Compatibility. | ||
|
|
||
| ### text_learning/vectorize_text.py | ||
| - 'joblib' used instead of 'Pickle'. | ||
|
|
||
|
|
||
| ## Lecture 12 : Feature Selection | ||
| ### feature_selection/find_signature.py | ||
| - 'joblib' used instead of 'Pickle'. | ||
| - 'model_selection.train_test_split' used instead of 'cross_validation.train_test_split'. | ||
|
|
||
|
|
||
| ## Lecture 13 : PCA | ||
| ### pca/eigenfaces.py | ||
| - 'model_selection.train_test_split' used instead of 'cross_validation.train_test_split'. | ||
|
|
||
|
|
||
| ## Lecture 14 : Validation | ||
| - No Special Changes | ||
|
|
||
|
|
||
| ## Lecture 15 : Evaluation Metrics | ||
| - No Special Changes | ||
|
|
||
|
|
||
| ## Lecture 16 : Trying it all Together | ||
| - No Special Changes | ||
|
|
||
|
|
||
| ## Lecture 17 : Final Project | ||
| - No Special Changes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it giving me that error:
File "E:\github\ud120-projects\datasets_questions\explore_enron_data.py", line 21, in
enron_data = joblib.load(open("../final_project/final_project_dataset.pkl", "rb"))
File "E:\github\ud120-projects\venv\lib\site-packages\joblib\numpy_pickle.py", line 577, in load
obj = _unpickle(fobj)
File "E:\github\ud120-projects\venv\lib\site-packages\joblib\numpy_pickle.py", line 506, in _unpickle
obj = unpickler.load()
File "C:\Program Files\Python39\lib\pickle.py", line 1212, in load
dispatchkey[0]
File "C:\Program Files\Python39\lib\pickle.py", line 1336, in load_string
raise UnpicklingError("the STRING opcode argument must be quoted")
_pickle.UnpicklingError: the STRING opcode argument must be quoted