Hi,
I'm attempting to build a ML model per the instructions, however on running the build command : /usr/local/bin/res-ml build -c resilient_incidents.csv -o first_model.ml
I get the following error :
Usecols do not match columns, columns expected but not found: ['list_of_fields_for_features_separated_by_comma']
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/fn_machine_learning/lib/ml_logistic_regression.py", line 81, in build
self.extract_csv(csv_file, features, prediction)
File "/usr/local/lib/python3.6/site-packages/fn_machine_learning/lib/ml_model_common.py", line 101, in extract_csv
quotechar='"')
File "/usr/local/lib64/python3.6/site-packages/pandas/io/parsers.py", line 688, in read_csv
return _read(filepath_or_buffer, kwds)
File "/usr/local/lib64/python3.6/site-packages/pandas/io/parsers.py", line 454, in _read
parser = TextFileReader(fp_or_buf, **kwds)
File "/usr/local/lib64/python3.6/site-packages/pandas/io/parsers.py", line 948, in __init__
self._make_engine(self.engine)
File "/usr/local/lib64/python3.6/site-packages/pandas/io/parsers.py", line 1180, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "/usr/local/lib64/python3.6/site-packages/pandas/io/parsers.py", line 2056, in __init__
_validate_usecols_names(usecols, self.orig_names)
File "/usr/local/lib64/python3.6/site-packages/pandas/io/parsers.py", line 1305, in _validate_usecols_names
f"Usecols do not match columns, columns expected but not found: {missing}"
ValueError: Usecols do not match columns, columns expected but not found: ['list_of_fields_for_features_separated_by_comma']
Traceback (most recent call last):
File "/usr/local/bin/res-ml", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/fn_machine_learning/bin/res_ml.py", line 263, in main
build_new_model(args, opt_parser)
File "/usr/local/lib/python3.6/site-packages/fn_machine_learning/bin/res_ml.py", line 451, in build_new_model
build_model(file_name, opt_parser, csv_file)
File "/usr/local/lib/python3.6/site-packages/fn_machine_learning/bin/res_ml.py", line 430, in build_model
unwanted_values=mlconfig.unwanted_values)
File "/usr/local/lib/python3.6/site-packages/fn_machine_learning/lib/ml_logistic_regression.py", line 149, in build
raise e
File "/usr/local/lib/python3.6/site-packages/fn_machine_learning/lib/ml_logistic_regression.py", line 81, in build
self.extract_csv(csv_file, features, prediction)
File "/usr/local/lib/python3.6/site-packages/fn_machine_learning/lib/ml_model_common.py", line 101, in extract_csv
quotechar='"')
File "/usr/local/lib64/python3.6/site-packages/pandas/io/parsers.py", line 688, in read_csv
return _read(filepath_or_buffer, kwds)
File "/usr/local/lib64/python3.6/site-packages/pandas/io/parsers.py", line 454, in _read
parser = TextFileReader(fp_or_buf, **kwds)
File "/usr/local/lib64/python3.6/site-packages/pandas/io/parsers.py", line 948, in __init__
self._make_engine(self.engine)
File "/usr/local/lib64/python3.6/site-packages/pandas/io/parsers.py", line 1180, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "/usr/local/lib64/python3.6/site-packages/pandas/io/parsers.py", line 2056, in __init__
_validate_usecols_names(usecols, self.orig_names)
File "/usr/local/lib64/python3.6/site-packages/pandas/io/parsers.py", line 1305, in _validate_usecols_names
f"Usecols do not match columns, columns expected but not found: {missing}"
ValueError: Usecols do not match columns, columns expected but not found: ['list_of_fields_for_features_separated_by_comma']
Does anyone know what I"m doing incorrectly here ? I've following the pdf file in the package. Currently running v40.1 of Resilient and the updated Resilient circuits.
Thanks,
Clinton
------------------------------
Clinton Dsouza
------------------------------