.. Silas documentation master file, created by sphinx-quickstart on Mon Nov 19 12:49:44 2018. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. .. _sec-explain-prediction: Explaining Predictions ====================== .. toctree:: :maxdepth: 2 :caption: Contents: This functionality is integrated into :ref:`prediction `. Similar to model introspection, this functionality also extracts logical formulae from the machine learning models first. But this process is implicit. To obtain predictions with explanations for the data file new-data1.csv using the models in model/this-model/, and store the predictions in pred.csv, simply use the -e flag as in the following command:: silas predict -e -o pred.csv model/this-model/ new-data1.csv With the -e flag, this command will run slower as it will extract explanations at the same time of obtaining predictions. Besides the usual output of the :ref:`predict command `, -e flag will output the feature importance (in the column w_) and the feature decision logic (in the column r_) for each feature. Note that if there are n features in the dataset, -e will output 2n extra columns, which may make the output file very large. .. Indices and tables .. ================== .. * :ref:`genindex` .. * :ref:`modindex` .. * :ref:`search`