Skip to content

Commit 1dff561

Browse files
authored
Merge pull request #2716 from jeff1evesque/feature-2712
#2712: Adjust 'README.md' to correspond to #5
2 parents ce08b9c + 401f9d4 commit 1dff561

File tree

1 file changed

+32
-21
lines changed

1 file changed

+32
-21
lines changed

README.md

Lines changed: 32 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# Machine Learning [![Build Status](https://travis-ci.org/jeff1evesque/machine-learning.svg?branch=master)](https://travis-ci.org/jeff1evesque/machine-learning)
22

33
In [machine learning](http://en.wikipedia.org/wiki/Machine_learning), support
4-
vector machines (SVMs) are [supervised learning](http://en.wikipedia.org/wiki/
5-
Supervised_learning) models with associated learning [algorithms](http://en.wi
6-
kipedia.org/wiki/Algorithm) that analyze data and recognize patterns, used for
7-
[classification](http://en.wikipedia.org/wiki/Statistical_classification) and
8-
[regression analysis](http://en.wikipedia.org/wiki/Regression_analysis). More
4+
vector machines (SVMs), and support vector machines (SVRs) are [supervised learning](http://en.wikipedia.org/wiki/Supervised_learning)
5+
models with associated learning [algorithms](http://en.wikipedia.org/wiki/Algorithm)
6+
that analyze data and recognize patterns, used for [classification](http://en.wikipedia.org/wiki/Statistical_classification)
7+
and [regression analysis](http://en.wikipedia.org/wiki/Regression_analysis). More
98
generally, machine-learning deals with the construction and study of systems
109
that can [learn](http://en.wikipedia.org/wiki/Learning) from data, rather than
1110
follow only explicitly programmed instructions.
@@ -314,8 +313,12 @@ Some additional sample files have been provided, which outline how the `data`
314313
attribute implement should be implemented, with respect to the above `post`
315314
implementation:
316315

317-
- [SVM sample datasets](https://github.com/jeff1evesque/machine-learning/blob/master/interface/static/data/json/programmatic_interface/svm)
318-
- [SVR sample datasets](https://github.com/jeff1evesque/machine-learning/blob/master/interface/static/data/json/programmatic_interface/svr)
316+
- [SVM datasets](https://github.com/jeff1evesque/machine-learning/blob/master/interface/static/data/json/programmatic_interface/svm)
317+
- [dataset url](https://github.com/jeff1evesque/machine-learning/tree/master/interface/static/data/json/programmatic_interface/svm/dataset_url)
318+
- [file upload](https://github.com/jeff1evesque/machine-learning/tree/master/interface/static/data/json/programmatic_interface/svm/file_upload)
319+
- [SVR datasets](https://github.com/jeff1evesque/machine-learning/blob/master/interface/static/data/json/programmatic_interface/svr)
320+
- [dataset url](https://github.com/jeff1evesque/machine-learning/tree/master/interface/static/data/json/programmatic_interface/svr/dataset_url)
321+
- [file upload](https://github.com/jeff1evesque/machine-learning/tree/master/interface/static/data/json/programmatic_interface/svr/file_upload)
319322

320323
**Note:** the content of each of the above files, can substituted for the above
321324
`data` attribute.
@@ -326,13 +329,17 @@ The following (non-exhaustive) properties define the above implemented `data`
326329
attribute:
327330

328331
- `model_id`: the numeric id value, of the generated model in the nosql
329-
datastore.
332+
datastore
330333
- `model_type`: corresponds to the desired model type, which can be one of
331334
the following:
332335
- `classification`
333336
- `regression`
334337
- `session_id`: the numeric id value, that represents the dataset stored in
335338
the sql database.
339+
- `dataset_type`: corresponds to one of the following types:
340+
- `dataset_url`: indication that the supplied dataset will be url references
341+
- `file_upload`: indication that the supplied dataset(s) will be defined as a
342+
json string within the `dataset` attribute
336343
- `session_type`: corresponds to one of the following session types:
337344
- `data_new`
338345
- `data_append`
@@ -346,15 +353,16 @@ The following (non-exhaustive) properties define the above implemented `data`
346353
- `polynomial`
347354
- `rbf`
348355
- `sigmoid`
356+
- `prediction_input[]`: an array of prediction input, supplied to the generated
357+
model to compute a prediction
349358

350359
### Test Scripts
351360

352361
This project implements [unit testing](https://en.wikipedia.org/wiki/Unit_testing),
353-
to validate logic in a consistent fashion. Currently, only high-level unit
354-
tests have been defined within [`pytest_svm_session.py`](https://github.com/jeff1evesque/machine-learning/blob/master/test/programmatic_interface/pytest_svm_session.py),
355-
and [`pytest_svr_session.py`](https://github.com/jeff1evesque/machine-learning/blob/master/test/programmatic_interface/pytest_svr_session.py).
356-
These unit tests have been automated within corresponding travis [builds](https://travis-ci.org/jeff1evesque/machine-learning),
357-
using a series of docker containers, connected via a common docker network:
362+
to validate logic in a consistent fashion. Currently, only [high-level](https://github.com/jeff1evesque/machine-learning/tree/master/test/live_server)
363+
unit tests have been defined. These unit tests have been automated within corresponding
364+
travis [builds](https://travis-ci.org/jeff1evesque/machine-learning), using
365+
a series of docker containers, connected via a common docker network:
358366

359367
- [`.travis.yml`](https://github.com/jeff1evesque/machine-learning/blob/e83f4222a9de11fcd839d6b3e789d63bab82e093/.travis.yml#L101-L120)
360368
- [`default.dockerfile`](https://github.com/jeff1evesque/machine-learning/blob/master/default.dockerfile)
@@ -369,23 +377,26 @@ Current unit tests cover the following sessions:
369377
- `model_predict`
370378
- `model_generate`
371379

372-
which can be executed manually as follows:
380+
which can be executed [manually](https://github.com/jeff1evesque/machine-learning/tree/master/test/manual)
381+
as follows:
373382

374383
```bash
375384
$ cd /path/to/machine-learning/
376385
$ vagrant up
377386
$ vagrant ssh
378-
vagrant@vagrant-ubuntu-trusty-64:~$ cd /vagrant/test && py.test manual
379-
============================================ test session starts =============================================
380-
platform linux2 -- Python 2.7.6, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
387+
vagrant@vagrant-ubuntu-trusty-64:~$ (cd /vagrant/test && pytest manual)
388+
================================================= test session starts ==================================================
389+
platform linux2 -- Python 2.7.6, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
381390
rootdir: /vagrant/test/manual, inifile: pytest.ini
382391
plugins: flask-0.10.0
383-
collected 8 items
392+
collected 16 items
384393

385-
manual/programmatic_interface/pytest_svm_session.py ....
386-
manual/programmatic_interface/pytest_svr_session.py ....
394+
manual/programmatic_interface/dataset_url/pytest_svm_dataset_url.py ....
395+
manual/programmatic_interface/dataset_url/pytest_svr_dataset_url.py ....
396+
manual/programmatic_interface/file_upload/pytest_svm_file_upload.py ....
397+
manual/programmatic_interface/file_upload/pytest_svr_file_upload.py ....
387398

388-
========================================= 8 passed in 7.82 seconds ==========================================
399+
============================================== 16 passed in 58.60 seconds ==============================================
389400
```
390401

391402
**Note:** future releases (i.e. milestone [1.0](https://github.com/jeff1evesque/machine-learning/milestones/1.0)),

0 commit comments

Comments
 (0)