forked from bigmlcom/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_prediction.feature
More file actions
31 lines (27 loc) · 1.56 KB
/
Copy pathcreate_prediction.feature
File metadata and controls
31 lines (27 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Feature: Create Predictions
In order to create a prediction
I need to create a model first
Scenario: Successfully creating a prediction:
Given I create a data source uploading a "<data>" file
And I wait until the source is ready less than <time_1> secs
And I create a dataset
And I wait until the dataset is ready less than <time_2> secs
And I create a model
And I wait until the model is ready less than <time_3> secs
When I create a prediction for "<data_input>"
Then the prediction for "<objective>" is "<prediction>"
Examples:
| data | time_1 | time_2 | time_3 | data_input | objective | prediction |
| ../data/iris.csv | 10 | 10 | 10 | {"petal length": 1} | 000004 | Iris-setosa |
Scenario: Successfully creating a prediction from a source in a remote location:
Given I create a data source using the url "<url>"
And I wait until the source is ready less than <time_1> secs
And I create a dataset
And I wait until the dataset is ready less than <time_2> secs
And I create a model
And I wait until the model is ready less than <time_3> secs
When I create a prediction for "<data_input>"
Then the prediction for "<objective>" is "<prediction>"
Examples:
| url | time_1 | time_2 | time_3 | data_input | objective | prediction |
| s3://bigml-public/csv/iris.csv | 10 | 10 | 10 | {"petal length": 1} | 000004 | Iris-setosa |