Commit Graph

61 Commits

Author SHA1 Message Date
Jenkins 935f21736a Merge "function always returns None" 2017-08-10 07:33:16 +00:00
Hangdong Zhang 548b4f7777 Update and optimize documentation links
1. Update URLs according to OpenStack document migration
2. Update the dead and outdated links
3. Optimize (e.g. http -> https)

Change-Id: Ib1ff6536072715ad81cbd1f53097b53e4adad95d
2017-07-20 09:34:29 +08:00
Jenkins 486f06693e Merge "Remove usage of parameter enforce_type" 2017-07-12 05:23:51 +00:00
Kiran_totad 5a351d0a02 function always returns None
Removed if respone:

Change-Id: Ice35d1517747c40594e9c54f658f13669719c713
Closes-Bug: #1680702
2017-07-11 15:42:56 +05:30
Ngo Quoc Cuong f40363a8d0 Add log hacking rules
- [C312] Validate that logs are not translated. [1]
- [H904] Delay string interpolations at logging calls. [2]

[1]https://docs.openstack.org/oslo.i18n/latest/user/usage.html#creating-an-integration-module
[2]https://docs.openstack.org/oslo.i18n/latest/user/guidelines.html#adding-variables-to-log-messages

Change-Id: I940f4b9fb1baaad1f3761402bcaef9aea60c6d37
2017-07-07 05:28:17 -04:00
Ngo Quoc Cuong 90bdc26b7c Remove usage of parameter enforce_type
DeprecationWarning: Using the 'enforce_type' argument is deprecated in
version '4.0' and will be removed in version '5.0': The argument
enforce_type has changed its default value to True and then will be
removed completely."

Change-Id: Iaf9d04f9ee3e07aaecff8bfb5621d69e35722f42
See: https://review.openstack.org/#/c/328692/
2017-06-27 21:33:21 -04:00
Hiroyuki Eguchi f99bcca1c1 Support keystone v3 authentification
modify sahara-client to work correctly with
latest keystone v3 authentication.

Change-Id: If119d184d90636327f88cad77c793b99ac6ba58a
2017-06-20 05:16:11 +00:00
deepakmourya 93ebc276d1 Use get_rpc_transport instead of get_transport
With the added get_rpc_transport() function in oslo.messaging [1]
and the recent version bump of oslo.messaging to 5.24.2, we can
safely replace get_transport() with get_rpc_transport() which is much
cleaner.

[1] https://review.openstack.org/#/c/454194/

Change-Id: I37ba0aba489d3b3b9d00000549fc67cd05f1d3a4
2017-06-07 13:04:18 +05:30
Jenkins 4594c1becc Merge "remove old oslo.messaging transport aliases" 2017-05-02 00:09:23 +00:00
Jenkins d31fc9da75 Merge "added error code for bad requests" 2017-04-13 12:04:41 +00:00
the.bling 8260b41a2e remove duplicate key from dict
Change-Id: Ibe22b31efc2e4454277961572a7e2060e78b8842
2017-04-11 14:24:57 +05:30
the.bling 73eef12dee remove old oslo.messaging transport aliases
Change-Id: I23a6b5cd3d6344f1a42460259bcf90197c3312a9
2017-04-11 11:15:01 +05:30
the.bling aca3fc8ad8 added error code for bad requests
Change-Id: I0c83778830aefb71edc16311e24ec6e1c1bcf432
2017-04-07 16:51:10 +05:30
Jenkins 085f35863d Merge "removed return from the method" 2017-04-06 05:46:19 +00:00
the.bling 6ccb043d79 removed return from the method
Change-Id: Icdf75bb52e5b6285e922b78b734a901153949c5c
2017-04-06 10:50:13 +05:30
Jenkins 0f6819f442 Merge "replaced function with set literal" 2017-04-06 03:19:26 +00:00
Jenkins 680ad3afd8 Merge "removed duplicate key from dict" 2017-04-05 05:48:13 +00:00
the.bling 45c5079f49 replaced dict with literal
Change-Id: Ic58c8e39aeb423b898a8d0a793b3152c0d1b693e
2017-04-04 14:59:38 +05:30
the.bling bc4144302d replaced function with set literal
Change-Id: Ia4484ff272369b29a306a3db01491daf9f79ce71
2017-04-04 13:55:53 +05:30
the.bling cf4162571b removed duplicate key from dict
Change-Id: Idaed4a7e14f74de1b1e2d602e9c0a90e178a26df
2017-04-04 12:21:25 +05:30
Hiroyuki Eguchi c034c74cf8 Modify output of model evaluation
- change the format of output from text to dictionary
- unify parameters of binary classification and
  multiclass classification

Change-Id: I384ccdb06f3cbda44defe4ab40cd66da6ab09231
2017-04-03 11:30:44 +09:00
Hiroyuki Eguchi 00fd417f26 Extend parameters of model-recreate
Extend parameters of "model-recreate"
so that user can recreate model
with new model parameters.

implements blueprint recreate-model

Change-Id: I703b8d729cfd0d250b143e902100017596327f59
2017-03-29 12:46:50 +09:00
Jenkins 905fb575c7 Merge "Add model api unit test" 2017-03-28 07:01:51 +00:00
ShunliZhou 660a96ff8a Add model api unit test
Add unit test for model api

Change-Id: I8e555d8bc208919d095c3a8986120d6723c80a65
Partially-Implements: blueprint unit-testing
2017-03-27 15:13:18 +08:00
Jenkins 9536896c68 Merge "Enable KMeans to support a text format" 2017-03-22 07:57:10 +00:00
Hiroyuki Eguchi 1aecbf38ba Enable KMeans to support a text format
Enable KMeans to support a text format using tf-idf.

implements blueprint : support-text-format

Change-Id: I7b29207819771dd44e58f034c30d9787661c1024
2017-03-22 16:29:27 +09:00
Tao Li 179d341ecd Remove log translations
Log messages are no longer being translated. This removes all use of the
_LE, _LI, and _LW translation markers to simplify logging and to avoid
confusion with new contributions. See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: I1c77ab511ad9aa87372c66af8cd49f9b2c38e085
2017-03-22 12:07:59 +08:00
Hiroyuki Eguchi 1ecd4582ec Fix a TypeError
Change-Id: Ia1a0a6bdf0707ccf96a02dec36f94f0c68b165fc
2017-03-15 16:28:58 +09:00
Hiroyuki Eguchi 892f96b98d Enable NaiveBayes to support a text format
Enable NaiveBayes to support a text format using tf-idf.

This feature allows user to create following prediction models.
- model detects whether it is a spam mail or not
- model predicts whether it is a review of goodwill or not
- model detects what language a document is written in

implements blueprint : support-text-format
Change-Id: Ib016c587ab821faa7518f6face76d57883dab5ab
2017-03-15 10:57:26 +09:00
iswarya_vakati 8deb39812a cors: update default configuration
Set_defaults has been added into oslo_middleware. so we use it
to override the configuration defaults.
More details: https://review.openstack.org/#/c/285368

Change-Id: I087db1a00aa3b0c9f0749343435f1428664f98dd
2017-03-13 09:53:30 +00:00
shunliz 2bc9dcc9c0 Add learning api unit test
Add unit test for leanring api

Change-Id: I4250cb723712f825c652c96e1e579a50389136fb
2017-03-07 10:49:52 +08:00
Hiroyuki Eguchi 5045c6c189 Return related resource information
This bug is related to below bp.

Add Overview Panel
https://blueprints.launchpad.net/meteos-ui/+spec/overview-panel

This bp aims to add a overview panel which show up
relationships among machine learning resources.

To make this bp possible, meteos-api must return
information how resources are related to each other.

For instance, model is related to experiment,
so meteos-api has to return the model information
including experiment_id.

Closes-Bug: 1668577
Change-Id: I26e49853195ac4c0a4d7bd20073cc5a111f36ad8
2017-02-28 21:23:46 +09:00
Jenkins 723b2d8da8 Merge "Add unit test for experiment" 2017-02-27 12:42:12 +00:00
shunliz a2a317be84 Add unit test for experiment
Add unit test for experiment

Change-Id: Ifc46c4c9fd4558038433773ddbac5da56d2ec694
2017-02-27 10:51:48 +08:00
Hiroyuki Eguchi d9d14b05c1 Fix DB DataError
Some model parameters have been added by the below bp.

Add support models
https://blueprints.launchpad.net/meteos/+spec/add-support-models

It makes model_params longer than 255 characters.

As the result, DB Error occurred when creating model.
Change column type of model_params from String(255) to Text().

Change-Id: I8123408b76b90d3b390a216413b5e455b86fdec5
Closes-Bug: 1667173
2017-02-23 11:19:08 +09:00
Hiroyuki Eguchi 7d2d5ddfb0 Add Tree Models
Meteos only supports DecisionTreeRegression
in tree models until now.
This patch add support models as below.

- DecisionTreeClassification
- RandomForestRegression
- RandomForestClassification

implements blueprint add-support-models
Change-Id: Ia41b852c1cc6ffa10033b3a6140a969cf3c6f716
2017-02-22 15:39:42 +09:00
Jenkins 3bf27d30da Merge "Add RidgeRegression Model" 2017-02-21 06:58:21 +00:00
Jenkins 242f91a5e9 Merge "Complete unit test for dataset" 2017-02-21 06:45:48 +00:00
Hiroyuki Eguchi b72ac81d9c Add RidgeRegression Model
Add a common class named Regression Model and
add Ridge Regression Model.
And add some parameters which are used commonly
in Regression Model.

implements blueprint add-support-models
Change-Id: I4648bf2009ca4910014d3d0afd7496359f48131e
2017-02-21 14:32:15 +09:00
shunliz 27ae94fb23 Complete unit test for dataset
Complete the other tests of dataset

Change-Id: Iccad801b1ee03af2fb118b1b64e33a447c74f960
2017-02-21 09:20:17 +08:00
Sharat Sharma bf4bbbd0d5 Replaces uuid.uuid4 with uuidutils.generate_uuid()
Change-Id: I7641164116020a835580f8dbfd07a622a3cbab40
2017-02-20 10:10:26 +00:00
shunliz 1330ce647d Add unit test for dataset api
Add unit test for dataset api show

Change-Id: I1028c41efc901b8050911f42a418d2ea35c7ef7a
2017-02-16 15:47:24 +08:00
Hiroyuki Eguchi ff493ac8c5 Add NaiveBayes Model
implements blueprint add-support-models

Change-Id: Ic40d6183a7df3bf85a44199db36a4dc8723dbed8
2017-02-13 14:38:32 +09:00
Hiroyuki Eguchi d544f046f1 Add validations when creating/deleting resources
Change-Id: I4a2b4c0a9013605d465dc4ab2f012d1f8b785287
2017-02-12 17:08:33 +09:00
Hiroyuki Eguchi 0a6e3912c1 Recreate Model
it's desirable for prediction models
to increase their accuracy continuously.

Add a "model-recreate" command to
recreate model with new datasets.

implements blueprint recreate-model
Change-Id: Ib69bcf9df0de38b5d31c338d09cf13b9b6a8e144
2017-02-09 15:46:46 +09:00
Hiroyuki Eguchi 8009742c0f Add split dataset method
In machine learning, user splits the dataset in general.
One is for creating a prediction model,
the other is for evaluating model.
Add a split dataset command to make it possible.

implements blueprint split-dataset

Change-Id: Idb323a1240d790d5628f9eb31cba8d3a29ad64e8
2017-02-08 16:38:16 +09:00
Hiroyuki Eguchi a197225848 Add items into list which meteos-api returns
Change-Id: I2d7c37b0b4c208e4a9c5dcc8158d1536da75d7a2
2017-02-03 12:52:34 +09:00
Hiroyuki Eguchi 6be0be850c Integrate with dashboard
- accept string format in model parameters for meteos-ui
- modify value list which are returned by meteos-api

Change-Id: I10b270d3f33aaf470466f6daa96f1756739d723e
2017-02-01 10:17:46 +09:00
Hiroyuki Eguchi 0f813fc1c1 Remove unit test that is not relevant anymore
'test_to_dict_works_w_missing_meteos_context_attributes'
fails with latest release of oslo.context lib which is 2.12.0.

Remove this test as irrelevant and unblock CI doing it.

Change-Id: Icf0d893cb03793fc8a6d1adfcc293da96280b47e
2017-02-01 09:50:36 +09:00
Hiroyuki Eguchi 750ffb0501 Resources are not private
Change-Id: I28c799ce8c3841d34ce6940d043a234991e950ea
2017-01-27 14:43:39 +09:00