Skip to content

Commit

Permalink
Update to Rubix ML 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdalpino committed Jan 1, 2021
1 parent 698c468 commit 0697381
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 205 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md → LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 The Rubix ML Community
Copyright (c) 2020 Rubix ML
Copyright (c) 2020 Andrew DalPino

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Unlabeled::build(array_transpose([$losses]))

This is an example of a line plot of the Cross Entropy cost function from a training session. As you can see, the model learns quickly during the early epochs with slower training nearing the final stage as the learner fine-tunes the model parameters.

![Cross Entropy Loss](https://raw.githubusercontent.com/RubixML/HAR/master/docs/images/training-loss.svg?sanitize=true)
![Cross Entropy Loss](https://raw.githubusercontent.com/RubixML/HAR/master/docs/images/training-loss.png)

### Saving
Since we wrapped the estimator in a Persistent Model wrapper, we can save the model by calling the `save()` method on the estimator instance.
Expand Down Expand Up @@ -215,4 +215,4 @@ Contact: Jorge L. Reyes-Ortiz(1,2), Davide Anguita(1), Alessandro Ghio(1), Luca
>- Davide Anguita, Alessandro Ghio, Luca Oneto, Xavier Parra and Jorge L. Reyes-Ortiz. A Public Domain Dataset for Human Activity Recognition Using Smartphones. 21th European Symposium on Artificial Neural Networks, Computational Intelligence and Machine Learning, ESANN 2013. Bruges, Belgium 24-26 April 2013.
## License
The code is licensed [MIT](LICENSE.md) and the tutorial is licensed [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/).
The code is licensed [MIT](LICENSE) and the tutorial is licensed [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/).
10 changes: 3 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "project",
"description": "Recognize one of six human activities such as standing, sitting, and walking using a Softmax Classifier trained on mobile phone sensor data.",
"homepage": "https://github.com/RubixML/HAR",
"license": "Apache-2.0",
"license": "MIT",
"readme": "README.md",
"keywords": [
"classification", "classifier", "cross validation", "dataset", "data science",
Expand All @@ -14,17 +14,13 @@
"authors": [
{
"name": "Andrew DalPino",
"email": "me@andrewdalpino.com",
"homepage": "https://andrewdalpino.com",
"homepage": "https://github.com/andrewdalpino",
"role": "Lead Engineer"
}
],
"require": {
"php": ">=7.2",
"rubix/ml": "^0.1.0"
},
"suggest": {
"ext-tensor": "For faster training and inference"
"rubix/ml": "^0.3.0"
},
"scripts": {
"train": "@php train.php",
Expand Down
Binary file added docs/images/training-loss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
193 changes: 0 additions & 193 deletions docs/images/training-loss.svg

This file was deleted.

2 changes: 1 addition & 1 deletion train.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@

if (strtolower(readline('Save this model? (y|[n]): ')) === 'y') {
$estimator->save();
}
}
2 changes: 1 addition & 1 deletion validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@

$results->toJSON()->write('report.json');

$logger->info('Report saved to report.json');
$logger->info('Report saved to report.json');

0 comments on commit 0697381

Please sign in to comment.