Feat(models): Implemented three models for license similarity#69
Open
Kaushl2208 wants to merge 1 commit intofossology:masterfrom
Open
Feat(models): Implemented three models for license similarity#69Kaushl2208 wants to merge 1 commit intofossology:masterfrom
Kaushl2208 wants to merge 1 commit intofossology:masterfrom
Conversation
Member
Author
Member
Author
GMishx
reviewed
Aug 20, 2020
GMishx
requested changes
Aug 20, 2020
GMishx
reviewed
Aug 20, 2020
atarashi/agents/models/train.py
Outdated
|
|
||
| def model_train(): | ||
|
|
||
| data = pd.read_csv("atarashi/data/licenses/licenseList.csv") |
Member
There was a problem hiding this comment.
As a future improvement, SPDX license data can be pulled in using atarashi.license.licenseDownloader.LicenseDownloader.download_license and merged with main list using atarashi.license.license_merger.license_merger.
GMishx
requested changes
Aug 28, 2020
Member
GMishx
left a comment
There was a problem hiding this comment.
Few more changes are required. And please squash your commits.
…ween licenses #New changes update
GMishx
approved these changes
Aug 31, 2020
Member
GMishx
left a comment
There was a problem hiding this comment.
Agent looks good.
Tested with pip install .
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Description
Implementation of Logistic Regression, Multinomial Naive Bayes and Linear SVC on license dataset licenseList.csv. The main purpose of implementing this idea was to plan for a model which can make atarashi faster and more accurate.
Files
How to use?
Test the models
atarashi -a lr_classifier path/to/file(Logistic Regression)atarashi -a nb_classifier path/to/file(Multinomial Naive Bayes)atarashi -a svc_classifier path/to/file(Linear SVC)Train the models (Optional)
python3 atarashi/agents/models/train.pyToDo
Test working and accuracy of the algorithms using
evaluator.pyproper integration with
atarashii.pyAccuracy Score
Future Scope
CC: @hastagAB @GMishx @ag4ums
Signed off by: Kaushlendra Pratap Singh kaushlendrapratap.9837@gmail.com