Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit fd28b9a

Browse files
sakshamarora1John Andersen
authored andcommitted
docs: model: Replace -features with -model-features
Signed-off-by: John Andersen <[email protected]>
1 parent 8b036b5 commit fd28b9a

File tree

7 files changed

+25
-25
lines changed

7 files changed

+25
-25
lines changed

dffml/skel/model/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dffml train \
2020
-model model_name \
2121
-sources csv=iris_training.csv \
2222
-classifications 0 1 2 \
23-
-features \
23+
-model-features \
2424
def:SepalLength:float:1 \
2525
def:SepalWidth:float:1 \
2626
def:PetalLength:float:1 \
@@ -32,7 +32,7 @@ dffml accuracy \
3232
-model model_name \
3333
-sources csv=iris_training.csv \
3434
-classifications 0 1 2 \
35-
-features \
35+
-model-features \
3636
def:SepalLength:float:1 \
3737
def:SepalWidth:float:1 \
3838
def:PetalLength:float:1 \
@@ -42,7 +42,7 @@ dffml predict all \
4242
-model model_name \
4343
-sources csv=iris_test.csv \
4444
-classifications 0 1 2 \
45-
-features \
45+
-model-features \
4646
def:SepalLength:float:1 \
4747
def:SepalWidth:float:1 \
4848
def:PetalLength:float:1 \

docs/plugins/dffml_model.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ Training:
386386
387387
$ dffml train \
388388
-model SCIKIT_MODEL_ENTRYPOINT \
389-
-features FEATURE_DEFINITION \
389+
-model-features FEATURE_DEFINITION \
390390
-model-predict TO_PREDICT \
391391
-model-SCIKIT_PARAMETER_NAME SCIKIT_PARAMETER_VALUE \
392392
-sources f=TRAINING_DATA_SOURCE_TYPE \
@@ -400,7 +400,7 @@ Testing and Accuracy:
400400
401401
$ dffml accuracy \
402402
-model SCIKIT_MODEL_ENTRYPOINT \
403-
-features FEATURE_DEFINITION \
403+
-model-features FEATURE_DEFINITION \
404404
-model-predict TO_PREDICT \
405405
-sources f=TESTING_DATA_SOURCE_TYPE \
406406
-source-filename TESTING_DATA_FILE_NAME \
@@ -413,7 +413,7 @@ Predicting with trained model:
413413
414414
$ dffml predict all \
415415
-model SCIKIT_MODEL_ENTRYPOINT \
416-
-features FEATURE_DEFINITION \
416+
-model-features FEATURE_DEFINITION \
417417
-model-predict TO_PREDICT \
418418
-sources f=PREDICT_DATA_SOURCE_TYPE \
419419
-source-filename PREDICT_DATA_FILE_NAME \
@@ -484,15 +484,15 @@ Let us take a simple example:
484484
EOF
485485
$ dffml train \
486486
-model scikitlr \
487-
-features def:Years:int:1 def:Expertise:int:1 def:Trust:float:1 \
487+
-model-features def:Years:int:1 def:Expertise:int:1 def:Trust:float:1 \
488488
-model-predict Salary \
489489
-sources f=csv \
490490
-source-filename train.csv \
491491
-source-readonly \
492492
-log debug
493493
$ dffml accuracy \
494494
-model scikitlr \
495-
-features def:Years:int:1 def:Expertise:int:1 def:Trust:float:1 \
495+
-model-features def:Years:int:1 def:Expertise:int:1 def:Trust:float:1 \
496496
-model-predict Salary \
497497
-sources f=csv \
498498
-source-filename test.csv \
@@ -502,7 +502,7 @@ Let us take a simple example:
502502
$ echo -e 'Years,Expertise,Trust\n6,13,1.4\n' | \
503503
dffml predict all \
504504
-model scikitlr \
505-
-features def:Years:int:1 def:Expertise:int:1 def:Trust:float:1 \
505+
-model-features def:Years:int:1 def:Expertise:int:1 def:Trust:float:1 \
506506
-model-predict Salary \
507507
-sources f=csv \
508508
-source-filename /dev/stdin \

docs/usage/integration.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ to train on our dataset.
376376
-model-classification maintained \
377377
-model-classifications 0 1 \
378378
-sources db=demoapp \
379-
-features \
379+
-model-features \
380380
def:authors:int:10 \
381381
def:commits:int:10 \
382382
def:work:int:10 \
@@ -393,7 +393,7 @@ meaningless unless you threw out the dataset and put in real classifications.
393393
-model-classification maintained \
394394
-model-classifications 0 1 \
395395
-sources db=demoapp \
396-
-features \
396+
-model-features \
397397
def:authors:int:10 \
398398
def:commits:int:10 \
399399
def:work:int:10 \
@@ -425,7 +425,7 @@ Now that we have the data for the new repo, ask the model for a prediction.
425425
-model-classification maintained \
426426
-model-classifications 0 1 \
427427
-sources db=demoapp \
428-
-features \
428+
-model-features \
429429
def:authors:int:10 \
430430
def:commits:int:10 \
431431
def:work:int:10 \

examples/maintained/cgi-bin/api-ml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
'-model-classification', 'maintained',
5454
'-model-classifications', '0', '1',
5555
'-sources', 'db=demoapp',
56-
'-features',
56+
'-model-features',
5757
'def:authors:int:10',
5858
'def:commits:int:10',
5959
'def:work:int:10',

model/scikit/dffml_model_scikit/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
$ dffml train \\
1313
-model SCIKIT_MODEL_ENTRYPOINT \\
14-
-features FEATURE_DEFINITION \\
14+
-model-features FEATURE_DEFINITION \\
1515
-model-predict TO_PREDICT \\
1616
-model-SCIKIT_PARAMETER_NAME SCIKIT_PARAMETER_VALUE \\
1717
-sources f=TRAINING_DATA_SOURCE_TYPE \\
@@ -25,7 +25,7 @@
2525
2626
$ dffml accuracy \\
2727
-model SCIKIT_MODEL_ENTRYPOINT \\
28-
-features FEATURE_DEFINITION \\
28+
-model-features FEATURE_DEFINITION \\
2929
-model-predict TO_PREDICT \\
3030
-sources f=TESTING_DATA_SOURCE_TYPE \\
3131
-source-filename TESTING_DATA_FILE_NAME \\
@@ -38,7 +38,7 @@
3838
3939
$ dffml predict all \\
4040
-model SCIKIT_MODEL_ENTRYPOINT \\
41-
-features FEATURE_DEFINITION \\
41+
-model-features FEATURE_DEFINITION \\
4242
-model-predict TO_PREDICT \\
4343
-sources f=PREDICT_DATA_SOURCE_TYPE \\
4444
-source-filename PREDICT_DATA_FILE_NAME \\
@@ -109,15 +109,15 @@
109109
EOF
110110
$ dffml train \\
111111
-model scikitlr \\
112-
-features def:Years:int:1 def:Expertise:int:1 def:Trust:float:1 \\
112+
-model-features def:Years:int:1 def:Expertise:int:1 def:Trust:float:1 \\
113113
-model-predict Salary \\
114114
-sources f=csv \\
115115
-source-filename train.csv \\
116116
-source-readonly \\
117117
-log debug
118118
$ dffml accuracy \\
119119
-model scikitlr \\
120-
-features def:Years:int:1 def:Expertise:int:1 def:Trust:float:1 \\
120+
-model-features def:Years:int:1 def:Expertise:int:1 def:Trust:float:1 \\
121121
-model-predict Salary \\
122122
-sources f=csv \\
123123
-source-filename test.csv \\
@@ -127,7 +127,7 @@
127127
$ echo -e 'Years,Expertise,Trust\\n6,13,1.4\\n' | \\
128128
dffml predict all \\
129129
-model scikitlr \\
130-
-features def:Years:int:1 def:Expertise:int:1 def:Trust:float:1 \\
130+
-model-features def:Years:int:1 def:Expertise:int:1 def:Trust:float:1 \\
131131
-model-predict Salary \\
132132
-sources f=csv \\
133133
-source-filename /dev/stdin \\

model/scratch/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ Years,Salary
2929
4,70
3030
5,80
3131
EOF
32-
$ dffml train -model scratchslr -features def:Years:int:1 -model-predict Salary -sources f=csv -source-filename dataset.csv -source-readonly -log debug
33-
$ dffml accuracy -model scratchslr -features def:Years:int:1 -model-predict Salary -sources f=csv -source-filename dataset.csv -source-readonly -log debug
32+
$ dffml train -model scratchslr -model-features def:Years:int:1 -model-predict Salary -sources f=csv -source-filename dataset.csv -source-readonly -log debug
33+
$ dffml accuracy -model scratchslr -model-features def:Years:int:1 -model-predict Salary -sources f=csv -source-filename dataset.csv -source-readonly -log debug
3434
1.0
35-
$ echo -e 'Years,Salary\n6,0\n' | dffml predict all -model scratchslr -features def:Years:int:1 -model-predict Salary -sources f=csv -source-filename /dev/stdin -source-readonly -log debug
35+
$ echo -e 'Years,Salary\n6,0\n' | dffml predict all -model scratchslr -model-features def:Years:int:1 -model-predict Salary -sources f=csv -source-filename /dev/stdin -source-readonly -log debug
3636
[
3737
{
3838
"extra": {},

news/origin_master_August_15_2019.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ Years,Salary
6262
EOF
6363
$ dffml train \
6464
-model scratchslr \
65-
-features def:Years:int:1 \
65+
-model-features def:Years:int:1 \
6666
-model-predict Salary \
6767
-sources f=csv \
6868
-source-filename dataset.csv \
6969
-source-readonly \
7070
-log debug
7171
$ dffml accuracy \
7272
-model scratchslr \
73-
-features def:Years:int:1 \
73+
-model-features def:Years:int:1 \
7474
-model-predict Salary \
7575
-sources f=csv \
7676
-source-filename dataset.csv \
@@ -80,7 +80,7 @@ $ dffml accuracy \
8080
$ echo -e 'Years,Salary\n6,0\n' | \
8181
dffml predict all \
8282
-model scratchslr \
83-
-features def:Years:int:1 \
83+
-model-features def:Years:int:1 \
8484
-model-predict Salary \
8585
-sources f=csv \
8686
-source-filename /dev/stdin \

0 commit comments

Comments
 (0)