Skip to content

Commit 5533702

Browse files
authored
Merge pull request #473 from KhiopsML/fix-v11-samples-usage
Fix text sample dictionary name
1 parent 1b0b3dc commit 5533702

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

doc/samples/samples.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ Samples
307307
# Train the predictor
308308
kh.train_predictor(
309309
dictionary_file_path,
310-
"FlightNegativeTweets",
310+
"NegativeAirlineTweets",
311311
data_table_path,
312312
"negativereason",
313313
report_file_path,
@@ -1109,7 +1109,7 @@ Samples
11091109
# Train the predictor
11101110
_, model_dictionary_file_path = kh.train_predictor(
11111111
dictionary_file_path,
1112-
"FlightNegativeTweets",
1112+
"NegativeAirlineTweets",
11131113
data_table_path,
11141114
"negativereason",
11151115
report_file_path,
@@ -1122,7 +1122,7 @@ Samples
11221122
# It will score it according to the trained predictor
11231123
kh.deploy_model(
11241124
model_dictionary_file_path,
1125-
"SNB_FlightNegativeTweets",
1125+
"SNB_NegativeAirlineTweets",
11261126
data_table_path,
11271127
output_data_table_path,
11281128
)

khiops/samples/samples.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@
397397
"# Train the predictor\n",
398398
"kh.train_predictor(\n",
399399
" dictionary_file_path,\n",
400-
" \"FlightNegativeTweets\",\n",
400+
" \"NegativeAirlineTweets\",\n",
401401
" data_table_path,\n",
402402
" \"negativereason\",\n",
403403
" report_file_path,\n",
@@ -1459,7 +1459,7 @@
14591459
"# Train the predictor\n",
14601460
"_, model_dictionary_file_path = kh.train_predictor(\n",
14611461
" dictionary_file_path,\n",
1462-
" \"FlightNegativeTweets\",\n",
1462+
" \"NegativeAirlineTweets\",\n",
14631463
" data_table_path,\n",
14641464
" \"negativereason\",\n",
14651465
" report_file_path,\n",
@@ -1472,7 +1472,7 @@
14721472
"# It will score it according to the trained predictor\n",
14731473
"kh.deploy_model(\n",
14741474
" model_dictionary_file_path,\n",
1475-
" \"SNB_FlightNegativeTweets\",\n",
1475+
" \"SNB_NegativeAirlineTweets\",\n",
14761476
" data_table_path,\n",
14771477
" output_data_table_path,\n",
14781478
")"

khiops/samples/samples.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def train_predictor_text():
332332
# Train the predictor
333333
kh.train_predictor(
334334
dictionary_file_path,
335-
"FlightNegativeTweets",
335+
"NegativeAirlineTweets",
336336
data_table_path,
337337
"negativereason",
338338
report_file_path,
@@ -1249,7 +1249,7 @@ def deploy_model_text():
12491249
# Train the predictor
12501250
_, model_dictionary_file_path = kh.train_predictor(
12511251
dictionary_file_path,
1252-
"FlightNegativeTweets",
1252+
"NegativeAirlineTweets",
12531253
data_table_path,
12541254
"negativereason",
12551255
report_file_path,
@@ -1262,7 +1262,7 @@ def deploy_model_text():
12621262
# It will score it according to the trained predictor
12631263
kh.deploy_model(
12641264
model_dictionary_file_path,
1265-
"SNB_FlightNegativeTweets",
1265+
"SNB_NegativeAirlineTweets",
12661266
data_table_path,
12671267
output_data_table_path,
12681268
)

0 commit comments

Comments
 (0)