diff --git a/.gitignore b/.gitignore index f7db4b641de813a678b90840deee40b361228a41..7c0efe66c2dfe543f002656887299ebc3c41f1c2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ .idea -__pycache__ -pages/application/DecisionTree/utils/__pycache__ -pages/application/DecisionTree/__pycache__ -pages/application/__pycache__ -tests/push_command \ No newline at end of file +tests +venv +*.pyc +.DS_Store +.env \ No newline at end of file diff --git a/callbacks.py b/callbacks.py index 8618810ef4eb103bc2ef64c6a4c1386e6b4de656..99694e4b0ba0509e1c7d98819128164bb297f825 100644 --- a/callbacks.py +++ b/callbacks.py @@ -7,39 +7,38 @@ from utils import parse_contents_graph, parse_contents_instance, parse_contents_ from pages.application.RandomForest.utils import xrf from pages.application.RandomForest.utils.xrf import * - sys.modules['xrf'] = xrf -####### Creates alerts when callback fails ######### -warning_selection_model = html.Div([dbc.Alert("You didn't choose a king of Machine Learning model first.", - is_open=True, - color='warning', - duration=10000, ), ]) +def register_callbacks(page_home, page_course, page_application, app): + page_list = ['home', 'course', 'application'] -warning_selection_pretrained_model = html.Div([dbc.Alert("You uploaded the data, now upload the pretrained model.", - is_open=True, - color='warning', - duration=10000, ), ]) + ####### Creates alerts when callback fails ######### -alert_network = html.Div([dbc.Alert("There was a problem while computing the graph, read the documentation. \ - You might have forgotten to upload the data for Random Forest or you tried to upload an unknown format.", - is_open=True, - color='danger', - duration=10000, ), ]) -alert_explanation = html.Div([dbc.Alert( - "There was a problem while computing the explanation. Read the documentation to understand which king of format are accepted.", - is_open=True, - color='danger', - duration=10000, ), ]) -alert_version_model = [] + warning_selection_model = html.Div([dbc.Alert("You didn't choose a king of Machine Learning model first.", + is_open=True, + color='warning', + duration=10000, ), ]) + warning_selection_pretrained_model = html.Div([dbc.Alert("You uploaded the data, now upload the pretrained model.", + is_open=True, + color='warning', + duration=10000, ), ]) -###################################################### + alert_network = html.Div([dbc.Alert("There was a problem while computing the graph, read the documentation. \ + You might have forgotten to upload the data for Random Forest or you tried to upload an unknown format.", + is_open=True, + color='danger', + duration=10000, ), ]) + alert_explanation = html.Div([dbc.Alert( + "There was a problem while computing the explanation. Read the documentation to understand which king of format are accepted.", + is_open=True, + color='danger', + duration=10000, ), ]) + alert_version_model = [] -def register_callbacks(page_home, page_course, page_application, app): - page_list = ['home', 'course', 'application'] + ###################################################### @app.callback( Output('page-content', 'children'), @@ -74,25 +73,49 @@ def register_callbacks(page_home, page_course, page_application, app): list(model_application.xtypes.keys())[0]] @app.callback(Output('pretrained_model_filename', 'children'), + Input('ml_model_choice', 'value'), Input('ml_pretrained_model_choice', 'filename'), prevent_initial_call=True ) - def update_model_prertrained_name(pretrained_model_filename): - return pretrained_model_filename + def update_model_prertrained_name(value_ml_model, pretrained_model_filename): + ctx = dash.callback_context + if ctx.triggered: + ihm_id = ctx.triggered[0]['prop_id'].split('.')[0] + if ihm_id == 'ml_model_choice': + return None + else : + return pretrained_model_filename @app.callback(Output('info_filename', 'children'), + Input('ml_model_choice', 'value'), Input('model_info_choice', 'filename'), prevent_initial_call=True ) - def update_model_info_filename(model_info_filename): - return model_info_filename + def update_model_info_filename(value_ml_model, model_info_filename): + ctx = dash.callback_context + if ctx.triggered: + ihm_id = ctx.triggered[0]['prop_id'].split('.')[0] + if ihm_id == 'ml_model_choice': + return None + else : + return model_info_filename @app.callback(Output('instance_filename', 'children'), + Input('ml_model_choice', 'value'), + Input('ml_pretrained_model_choice', 'contents'), Input('ml_instance_choice', 'filename'), prevent_initial_call=True ) - def update_instance_filename(instance_filename): - return instance_filename + def update_instance_filename(value_ml_model, model_info_filename, instance_filename): + ctx = dash.callback_context + if ctx.triggered: + ihm_id = ctx.triggered[0]['prop_id'].split('.')[0] + if ihm_id == 'ml_model_choice': + return None + elif ihm_id == 'ml_pretrained_model_choice': + return None + else : + return instance_filename @app.callback( Output('graph', 'children'), diff --git a/pages/application/RandomForest/RandomForestComponent.py b/pages/application/RandomForest/RandomForestComponent.py index dc532d441913ca3a50a4130cf1194b1c2492c1ea..644b17bce651b4ae65ba940eeade4c1d35d9e99e 100644 --- a/pages/application/RandomForest/RandomForestComponent.py +++ b/pages/application/RandomForest/RandomForestComponent.py @@ -53,6 +53,9 @@ class RandomForestComponent: self.explanation.append(html.P(explanation_result[k])) self.explanation.append(html.Hr()) + del self.random_forest.enc + del self.random_forest.x + return [], [] def update_plotted_tree(self, tree_to_plot): diff --git a/pages/application/application.py b/pages/application/application.py index 3f88c120f1bcea2ae003cfe27239e8dc8f81c05f..f502d764335d5148953904c9c674725975a3503f 100644 --- a/pages/application/application.py +++ b/pages/application/application.py @@ -7,6 +7,7 @@ from pages.application.NaiveBayes.NaiveBayesComponent import NaiveBayesComponent from pages.application.RandomForest.RandomForestComponent import RandomForestComponent + class Application: def __init__(self, view): self.view = view @@ -56,8 +57,14 @@ class Model: self.xtypes = self.dic_xtypes[self.ml_model] self.xtype = [list(self.xtypes.keys())[0]] + #init all params + self.pretrained_model = None + self.model_info = None + self.instance = None + def update_pretrained_model(self, pretrained_model_update): self.pretrained_model = pretrained_model_update + self.instance = None def update_info_needed(self, add_info): self.add_info = add_info diff --git a/requirements.txt b/requirements.txt index 073157043e129bfb62d0fe4f6405d7b5de8db5a7..7ea8eecf6a87fbf25ddf793d9871db39e9ff0825 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,6 @@ colorlover>=0.2.1 scipy>=1.2.1 python-sat[pblib,aiger] matplotlib==3.5.1 -xgboost==1.6.0 lime==0.2.0.1 shap==0.40.0 anchor-exp==0.0.2.0 @@ -18,8 +17,6 @@ json2html==1.3.0 numpy==1.21 pandas==1.4.1 pysat==3.0.1 -pytest==7.0.1 -python_sat==0.1.7.dev15 scikit_learn==1.0.2 six==1.16.0 gunicorn==20.1.0 diff --git a/tests/adult/adult.pkl b/tests/adult/adult.pkl deleted file mode 100644 index b18b4d6e77cfc501320ebd5650158dd268530d1d..0000000000000000000000000000000000000000 Binary files a/tests/adult/adult.pkl and /dev/null differ diff --git a/tests/adult/adult_2.pkl b/tests/adult/adult_2.pkl deleted file mode 100644 index 5221943e347e0a7b2b83e0ee33e5c603396536a3..0000000000000000000000000000000000000000 Binary files a/tests/adult/adult_2.pkl and /dev/null differ diff --git a/tests/adult/adult_3.pkl b/tests/adult/adult_3.pkl deleted file mode 100644 index b17bc94372fe8d7b6db981e73bf34d6f37b1d07b..0000000000000000000000000000000000000000 Binary files a/tests/adult/adult_3.pkl and /dev/null differ diff --git a/tests/adult/adult_data_00000.inst b/tests/adult/adult_data_00000.inst deleted file mode 100644 index c72f4e9e0aec1da4c12fdaa3b585d6d96054a30a..0000000000000000000000000000000000000000 --- a/tests/adult/adult_data_00000.inst +++ /dev/null @@ -1 +0,0 @@ -f0=1,f1=9,f2=9,f3=7,f4=9,f5=5,f6=7,f7=0,f8=5,f9=3,f10=0,f11=15 \ No newline at end of file diff --git a/tests/iris/decision_tree_classifier_20170212.pkl b/tests/iris/decision_tree_classifier_20170212.pkl deleted file mode 100644 index 006ccc214168eed2a37f7201ccca66648f1112f7..0000000000000000000000000000000000000000 Binary files a/tests/iris/decision_tree_classifier_20170212.pkl and /dev/null differ diff --git a/tests/iris/iris.csv b/tests/iris/iris.csv deleted file mode 100644 index 1b9d0294d6d589f667daf28efecbd0cb0276c352..0000000000000000000000000000000000000000 --- a/tests/iris/iris.csv +++ /dev/null @@ -1,151 +0,0 @@ -"sepal.length","sepal.width","petal.length","petal.width","variety" -5.1,3.5,1.4,.2,"Setosa" -4.9,3,1.4,.2,"Setosa" -4.7,3.2,1.3,.2,"Setosa" -4.6,3.1,1.5,.2,"Setosa" -5,3.6,1.4,.2,"Setosa" -5.4,3.9,1.7,.4,"Setosa" -4.6,3.4,1.4,.3,"Setosa" -5,3.4,1.5,.2,"Setosa" -4.4,2.9,1.4,.2,"Setosa" -4.9,3.1,1.5,.1,"Setosa" -5.4,3.7,1.5,.2,"Setosa" -4.8,3.4,1.6,.2,"Setosa" -4.8,3,1.4,.1,"Setosa" -4.3,3,1.1,.1,"Setosa" -5.8,4,1.2,.2,"Setosa" -5.7,4.4,1.5,.4,"Setosa" -5.4,3.9,1.3,.4,"Setosa" -5.1,3.5,1.4,.3,"Setosa" -5.7,3.8,1.7,.3,"Setosa" -5.1,3.8,1.5,.3,"Setosa" -5.4,3.4,1.7,.2,"Setosa" -5.1,3.7,1.5,.4,"Setosa" -4.6,3.6,1,.2,"Setosa" -5.1,3.3,1.7,.5,"Setosa" -4.8,3.4,1.9,.2,"Setosa" -5,3,1.6,.2,"Setosa" -5,3.4,1.6,.4,"Setosa" -5.2,3.5,1.5,.2,"Setosa" -5.2,3.4,1.4,.2,"Setosa" -4.7,3.2,1.6,.2,"Setosa" -4.8,3.1,1.6,.2,"Setosa" -5.4,3.4,1.5,.4,"Setosa" -5.2,4.1,1.5,.1,"Setosa" -5.5,4.2,1.4,.2,"Setosa" -4.9,3.1,1.5,.2,"Setosa" -5,3.2,1.2,.2,"Setosa" -5.5,3.5,1.3,.2,"Setosa" -4.9,3.6,1.4,.1,"Setosa" -4.4,3,1.3,.2,"Setosa" -5.1,3.4,1.5,.2,"Setosa" -5,3.5,1.3,.3,"Setosa" -4.5,2.3,1.3,.3,"Setosa" -4.4,3.2,1.3,.2,"Setosa" -5,3.5,1.6,.6,"Setosa" -5.1,3.8,1.9,.4,"Setosa" -4.8,3,1.4,.3,"Setosa" -5.1,3.8,1.6,.2,"Setosa" -4.6,3.2,1.4,.2,"Setosa" -5.3,3.7,1.5,.2,"Setosa" -5,3.3,1.4,.2,"Setosa" -7,3.2,4.7,1.4,"Versicolor" -6.4,3.2,4.5,1.5,"Versicolor" -6.9,3.1,4.9,1.5,"Versicolor" -5.5,2.3,4,1.3,"Versicolor" -6.5,2.8,4.6,1.5,"Versicolor" -5.7,2.8,4.5,1.3,"Versicolor" -6.3,3.3,4.7,1.6,"Versicolor" -4.9,2.4,3.3,1,"Versicolor" -6.6,2.9,4.6,1.3,"Versicolor" -5.2,2.7,3.9,1.4,"Versicolor" -5,2,3.5,1,"Versicolor" -5.9,3,4.2,1.5,"Versicolor" -6,2.2,4,1,"Versicolor" -6.1,2.9,4.7,1.4,"Versicolor" -5.6,2.9,3.6,1.3,"Versicolor" -6.7,3.1,4.4,1.4,"Versicolor" -5.6,3,4.5,1.5,"Versicolor" -5.8,2.7,4.1,1,"Versicolor" -6.2,2.2,4.5,1.5,"Versicolor" -5.6,2.5,3.9,1.1,"Versicolor" -5.9,3.2,4.8,1.8,"Versicolor" -6.1,2.8,4,1.3,"Versicolor" -6.3,2.5,4.9,1.5,"Versicolor" -6.1,2.8,4.7,1.2,"Versicolor" -6.4,2.9,4.3,1.3,"Versicolor" -6.6,3,4.4,1.4,"Versicolor" -6.8,2.8,4.8,1.4,"Versicolor" -6.7,3,5,1.7,"Versicolor" -6,2.9,4.5,1.5,"Versicolor" -5.7,2.6,3.5,1,"Versicolor" -5.5,2.4,3.8,1.1,"Versicolor" -5.5,2.4,3.7,1,"Versicolor" -5.8,2.7,3.9,1.2,"Versicolor" -6,2.7,5.1,1.6,"Versicolor" -5.4,3,4.5,1.5,"Versicolor" -6,3.4,4.5,1.6,"Versicolor" -6.7,3.1,4.7,1.5,"Versicolor" -6.3,2.3,4.4,1.3,"Versicolor" -5.6,3,4.1,1.3,"Versicolor" -5.5,2.5,4,1.3,"Versicolor" -5.5,2.6,4.4,1.2,"Versicolor" -6.1,3,4.6,1.4,"Versicolor" -5.8,2.6,4,1.2,"Versicolor" -5,2.3,3.3,1,"Versicolor" -5.6,2.7,4.2,1.3,"Versicolor" -5.7,3,4.2,1.2,"Versicolor" -5.7,2.9,4.2,1.3,"Versicolor" -6.2,2.9,4.3,1.3,"Versicolor" -5.1,2.5,3,1.1,"Versicolor" -5.7,2.8,4.1,1.3,"Versicolor" -6.3,3.3,6,2.5,"Virginica" -5.8,2.7,5.1,1.9,"Virginica" -7.1,3,5.9,2.1,"Virginica" -6.3,2.9,5.6,1.8,"Virginica" -6.5,3,5.8,2.2,"Virginica" -7.6,3,6.6,2.1,"Virginica" -4.9,2.5,4.5,1.7,"Virginica" -7.3,2.9,6.3,1.8,"Virginica" -6.7,2.5,5.8,1.8,"Virginica" -7.2,3.6,6.1,2.5,"Virginica" -6.5,3.2,5.1,2,"Virginica" -6.4,2.7,5.3,1.9,"Virginica" -6.8,3,5.5,2.1,"Virginica" -5.7,2.5,5,2,"Virginica" -5.8,2.8,5.1,2.4,"Virginica" -6.4,3.2,5.3,2.3,"Virginica" -6.5,3,5.5,1.8,"Virginica" -7.7,3.8,6.7,2.2,"Virginica" -7.7,2.6,6.9,2.3,"Virginica" -6,2.2,5,1.5,"Virginica" -6.9,3.2,5.7,2.3,"Virginica" -5.6,2.8,4.9,2,"Virginica" -7.7,2.8,6.7,2,"Virginica" -6.3,2.7,4.9,1.8,"Virginica" -6.7,3.3,5.7,2.1,"Virginica" -7.2,3.2,6,1.8,"Virginica" -6.2,2.8,4.8,1.8,"Virginica" -6.1,3,4.9,1.8,"Virginica" -6.4,2.8,5.6,2.1,"Virginica" -7.2,3,5.8,1.6,"Virginica" -7.4,2.8,6.1,1.9,"Virginica" -7.9,3.8,6.4,2,"Virginica" -6.4,2.8,5.6,2.2,"Virginica" -6.3,2.8,5.1,1.5,"Virginica" -6.1,2.6,5.6,1.4,"Virginica" -7.7,3,6.1,2.3,"Virginica" -6.3,3.4,5.6,2.4,"Virginica" -6.4,3.1,5.5,1.8,"Virginica" -6,3,4.8,1.8,"Virginica" -6.9,3.1,5.4,2.1,"Virginica" -6.7,3.1,5.6,2.4,"Virginica" -6.9,3.1,5.1,2.3,"Virginica" -5.8,2.7,5.1,1.9,"Virginica" -6.8,3.2,5.9,2.3,"Virginica" -6.7,3.3,5.7,2.5,"Virginica" -6.7,3,5.2,2.3,"Virginica" -6.3,2.5,5,1.9,"Virginica" -6.5,3,5.2,2,"Virginica" -6.2,3.4,5.4,2.3,"Virginica" -5.9,3,5.1,1.8,"Virginica" \ No newline at end of file diff --git a/tests/iris/iris.pkl b/tests/iris/iris.pkl deleted file mode 100644 index cf2d521581ec57be284bb87b75316940c16fdcb7..0000000000000000000000000000000000000000 Binary files a/tests/iris/iris.pkl and /dev/null differ diff --git a/tests/iris/iris.txt b/tests/iris/iris.txt deleted file mode 100644 index d356f5d1d011df170da9dacee5ac4b2d6bfc844b..0000000000000000000000000000000000000000 --- a/tests/iris/iris.txt +++ /dev/null @@ -1,4 +0,0 @@ -sepal.length,Categorical,7.6,6.8,7.1,4.9,4.4,6.2,6,7.3,5.9,7.4,5.2,5.6,4.8,6.5,5.5,4.6,6.6,6.4,7,4.5,7.2,5.1,5.8,5.3,6.9,6.1,6.7,4.7,7.7,6.3,5.7,7.9,5.4,4.3,5 -sepal.width,Categorical,4.2,4.4,3.1,2.4,2.9,2,3.8,4.1,4,3.2,2.7,3.3,2.2,2.5,2.3,3.6,3.5,3.9,2.8,2.6,3.7,3,3.4 -petal.length,Categorical,4.2,4.9,4.4,6,5.9,5.2,5.6,4.8,1,5.5,4.6,6.6,1.1,3.8,1.5,6.4,4.1,4,4.5,1.6,3.3,1.4,5.1,1.7,5.8,3.5,3.6,5.3,1.9,6.9,6.1,6.7,4.7,3.9,1.2,1.3,6.3,5.7,3.7,5.4,3,4.3,5 -petal.width,Categorical,2.4,.2,1,2,1.1,1.5,.6,.5,2.2,.3,1.6,1.4,2.5,1.7,2.3,1.8,2.1,1.9,1.2,1.3,.1,.4 \ No newline at end of file diff --git a/tests/iris/iris01.json b/tests/iris/iris01.json deleted file mode 100644 index 59c0840b5597ccb4347c3c2041707f0ae1d11aa0..0000000000000000000000000000000000000000 --- a/tests/iris/iris01.json +++ /dev/null @@ -1,4 +0,0 @@ -{"sepal.length":4.9, -"sepal.width":3, -"petal.length":1.4, -"petal.width":0.2} diff --git a/tests/iris/iris2.pkl b/tests/iris/iris2.pkl deleted file mode 100644 index cf2d521581ec57be284bb87b75316940c16fdcb7..0000000000000000000000000000000000000000 Binary files a/tests/iris/iris2.pkl and /dev/null differ diff --git a/tests/iris/iris_00000.txt b/tests/iris/iris_00000.txt deleted file mode 100644 index 108004d0deba35123ce4bdbcb9fa37930d6164ba..0000000000000000000000000000000000000000 --- a/tests/iris/iris_00000.txt +++ /dev/null @@ -1 +0,0 @@ -sepal.length=4.3,sepal.width=2.0,petal.length=1.0,petal.width=0.1 \ No newline at end of file diff --git a/tests/zoo/inst/zoo_00.inst b/tests/zoo/inst/zoo_00.inst deleted file mode 100644 index 8d6abc5618927fb2ddf49400932809448ebef26c..0000000000000000000000000000000000000000 --- a/tests/zoo/inst/zoo_00.inst +++ /dev/null @@ -1 +0,0 @@ -f0=1,f1=0,f1=0,f1=1,f1=0,f1=0,f1=1,f1=1,f1=1,f1=1,f1=0,f1=0,f1=4,f1=0,f1=0,f1=1 \ No newline at end of file diff --git a/tests/zoo/inst/zoo_01.inst b/tests/zoo/inst/zoo_01.inst deleted file mode 100644 index 4a6df5103d348fbf79e75654cb20f9594d47e842..0000000000000000000000000000000000000000 --- a/tests/zoo/inst/zoo_01.inst +++ /dev/null @@ -1 +0,0 @@ -1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,1 \ No newline at end of file diff --git a/tests/zoo/inst/zoo_02.inst b/tests/zoo/inst/zoo_02.inst deleted file mode 100644 index d72c0ae09ad51c4f6ec073b66e773beb18515be4..0000000000000000000000000000000000000000 --- a/tests/zoo/inst/zoo_02.inst +++ /dev/null @@ -1 +0,0 @@ -0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,0 \ No newline at end of file diff --git a/tests/zoo/inst/zoo_11.inst b/tests/zoo/inst/zoo_11.inst deleted file mode 100644 index 0fa9d7c8a871929cbe518a7be16966fc2f7b9a6d..0000000000000000000000000000000000000000 --- a/tests/zoo/inst/zoo_11.inst +++ /dev/null @@ -1 +0,0 @@ -0,1,1,0,1,0,0,0,1,1,0,0,2,1,1,0 \ No newline at end of file diff --git a/tests/zoo/zoo.csv b/tests/zoo/zoo.csv deleted file mode 100644 index 7eb9774cdc5f452baac8ed8d4ea0efe83a466386..0000000000000000000000000000000000000000 --- a/tests/zoo/zoo.csv +++ /dev/null @@ -1,102 +0,0 @@ -hair,feathers,eggs,milk,airborne,aquatic,predator,toothed,backbone,breathes,venomous,fins,legs,tail,domestic,catsize,class_type -1,0,0,1,0,0,1,1,1,1,0,0,4,0,0,1,mammal -1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,1,mammal -0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,0,fish -1,0,0,1,0,0,1,1,1,1,0,0,4,0,0,1,mammal -1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,mammal -1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,1,mammal -1,0,0,1,0,0,0,1,1,1,0,0,4,1,1,1,mammal -0,0,1,0,0,1,0,1,1,0,0,1,0,1,1,0,fish -0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,0,fish -1,0,0,1,0,0,0,1,1,1,0,0,4,0,1,0,mammal -1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,mammal -0,1,1,0,1,0,0,0,1,1,0,0,2,1,1,0,bird -0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,0,fish -0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,invertebrate -0,0,1,0,0,1,1,0,0,0,0,0,4,0,0,0,invertebrate -0,0,1,0,0,1,1,0,0,0,0,0,6,0,0,0,invertebrate -0,1,1,0,1,0,1,0,1,1,0,0,2,1,0,0,bird -1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,1,mammal -0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,1,fish -0,0,0,1,0,1,1,1,1,1,0,1,0,1,0,1,mammal -0,1,1,0,1,0,0,0,1,1,0,0,2,1,1,0,bird -0,1,1,0,1,1,0,0,1,1,0,0,2,1,0,0,bird -1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,1,mammal -0,1,1,0,1,0,0,0,1,1,0,0,2,1,0,1,bird -0,0,1,0,0,0,0,0,0,1,0,0,6,0,0,0,bug -0,0,1,0,0,1,1,1,1,1,0,0,4,0,0,0,amphibian -0,0,1,0,0,1,1,1,1,1,1,0,4,0,0,0,amphibian -1,0,0,1,1,0,0,1,1,1,0,0,2,1,0,0,mammal -1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,1,mammal -1,0,0,1,0,0,1,1,1,1,0,0,2,0,1,1,mammal -0,0,1,0,1,0,0,0,0,1,0,0,6,0,0,0,bug -1,0,0,1,0,0,0,1,1,1,0,0,4,1,1,1,mammal -1,0,0,1,0,0,0,1,1,1,0,0,2,0,0,1,mammal -0,1,1,0,1,1,1,0,1,1,0,0,2,1,0,0,bird -0,0,1,0,0,1,0,1,1,0,0,1,0,1,0,0,fish -1,0,0,1,0,0,0,1,1,1,0,0,4,1,1,0,mammal -1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,0,mammal -0,1,1,0,1,0,1,0,1,1,0,0,2,1,0,0,bird -0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,0,fish -1,0,1,0,1,0,0,0,0,1,1,0,6,0,1,0,bug -1,0,1,0,1,0,0,0,0,1,0,0,6,0,0,0,bug -0,1,1,0,0,0,1,0,1,1,0,0,2,1,0,0,bird -0,0,1,0,1,0,1,0,0,1,0,0,6,0,0,0,bug -0,1,1,0,1,0,0,0,1,1,0,0,2,1,0,0,bird -1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,mammal -1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,mammal -0,0,1,0,0,1,1,0,0,0,0,0,6,0,0,0,invertebrate -1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,mammal -1,0,0,1,0,1,1,1,1,1,0,0,4,1,0,1,mammal -1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,0,mammal -1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,mammal -1,0,1,0,1,0,0,0,0,1,0,0,6,0,0,0,bug -0,0,1,0,0,1,1,1,1,1,0,0,4,1,0,0,amphibian -0,0,1,0,0,1,1,0,0,0,0,0,8,0,0,1,invertebrate -1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,0,mammal -1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,1,mammal -0,1,1,0,0,0,0,0,1,1,0,0,2,1,0,1,bird -0,1,1,0,1,0,0,0,1,1,0,0,2,1,1,0,bird -0,1,1,0,0,1,1,0,1,1,0,0,2,1,0,1,bird -0,1,1,0,1,0,0,0,1,1,0,0,2,1,0,0,bird -0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,1,fish -0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,0,fish -0,0,1,0,0,0,1,1,1,1,1,0,0,1,0,0,reptile -1,0,1,1,0,1,1,0,1,1,0,0,4,1,0,1,mammal -1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,mammal -1,0,0,1,0,0,0,1,1,1,0,0,4,1,1,1,mammal -0,0,0,1,0,1,1,1,1,1,0,1,0,1,0,1,mammal -1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,mammal -1,0,0,1,0,0,1,1,1,1,0,0,4,1,1,1,mammal -1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,mammal -1,0,0,1,0,0,0,1,1,1,0,0,4,1,1,1,mammal -0,1,1,0,0,0,1,0,1,1,0,0,2,1,0,1,bird -0,0,0,0,0,0,1,0,0,1,1,0,8,1,0,0,invertebrate -0,0,1,0,0,1,0,1,1,0,0,1,0,1,0,0,fish -1,0,0,1,0,1,1,1,1,1,0,1,0,0,0,1,mammal -1,0,0,1,0,1,1,1,1,1,0,1,2,1,0,1,mammal -0,0,0,0,0,1,1,1,1,0,1,0,0,1,0,0,reptile -0,0,1,0,0,1,1,0,0,0,1,0,0,0,0,0,invertebrate -0,1,1,0,1,1,1,0,1,1,0,0,2,1,0,0,bird -0,1,1,0,1,1,1,0,1,1,0,0,2,1,0,0,bird -0,0,1,0,0,0,1,1,1,1,0,0,0,1,0,0,reptile -0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,invertebrate -0,0,1,0,0,1,0,1,1,0,0,1,0,1,0,0,fish -0,1,1,0,1,0,0,0,1,1,0,0,2,1,0,0,bird -1,0,0,1,0,0,0,1,1,1,0,0,2,1,0,0,mammal -0,0,1,0,0,1,1,0,0,0,0,0,5,0,0,0,invertebrate -0,0,1,0,0,1,1,1,1,0,1,1,0,1,0,1,fish -0,1,1,0,1,1,0,0,1,1,0,0,2,1,0,1,bird -0,0,1,0,0,0,0,0,0,1,0,0,6,0,0,0,bug -0,0,1,0,0,1,0,1,1,1,0,0,4,0,0,0,amphibian -0,0,1,0,0,0,0,0,1,1,0,0,4,1,0,1,reptile -0,0,1,0,0,0,1,1,1,1,0,0,4,1,0,0,reptile -0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,1,fish -1,0,0,1,1,0,0,1,1,1,0,0,2,1,0,0,mammal -1,0,0,1,0,0,0,1,1,1,0,0,4,1,0,0,mammal -0,1,1,0,1,0,1,0,1,1,0,0,2,1,0,1,bird -1,0,0,1,0,0,0,1,1,1,0,0,2,1,0,1,mammal -1,0,1,0,1,0,0,0,0,1,1,0,6,0,0,0,bug -1,0,0,1,0,0,1,1,1,1,0,0,4,1,0,1,mammal -0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,invertebrate -0,1,1,0,1,0,0,0,1,1,0,0,2,1,0,0,bird \ No newline at end of file diff --git a/tests/zoo/zoo.dt b/tests/zoo/zoo.dt deleted file mode 100644 index a1ee6427913de0385b71077c93d9889e0479c78d..0000000000000000000000000000000000000000 --- a/tests/zoo/zoo.dt +++ /dev/null @@ -1,85 +0,0 @@ -41 -1 -I 1 2 3 6 9 10 12 14 17 18 20 21 22 24 28 30 33 35 37 38 -T 4 5 7 8 11 13 15 16 19 23 25 26 27 29 31 32 34 36 39 40 41 -4 T bug -5 T mammal -7 T bird -8 T bug -11 T mammal -13 T fish -15 T bird -16 T reptile -19 T mammal -23 T reptile -25 T reptile -26 T bird -27 T fish -29 T amphibian -31 T amphibian -32 T reptile -34 T invertebrate -36 T invertebrate -39 T invertebrate -40 T bug -41 T invertebrate -1 f4 0 2 -1 f4 1 9 -2 f0 0 3 -2 f0 1 6 -3 f10 0 4 -3 f10 1 5 -6 f12 1 7 -6 f12 5 7 -6 f12 9 7 -6 f12 11 7 -6 f12 3 8 -6 f12 7 8 -9 f15 0 10 -9 f15 1 17 -10 f3 0 11 -10 f3 1 12 -12 f11 0 13 -12 f11 1 14 -14 f12 1 15 -14 f12 9 15 -14 f12 3 16 -14 f12 5 16 -14 f12 7 16 -14 f12 11 16 -17 f8 0 18 -17 f8 1 33 -18 f0 0 19 -18 f0 1 20 -20 f12 1 21 -20 f12 9 21 -20 f12 3 28 -20 f12 5 28 -20 f12 7 28 -20 f12 11 28 -21 f6 0 22 -21 f6 1 27 -22 f10 0 23 -22 f10 1 24 -24 f12 9 25 -24 f12 1 26 -24 f12 3 26 -24 f12 5 26 -24 f12 7 26 -24 f12 11 26 -28 f10 0 29 -28 f10 1 30 -30 f5 0 31 -30 f5 1 32 -33 f5 0 34 -33 f5 1 35 -35 f13 0 36 -35 f13 1 37 -37 f9 0 38 -37 f9 1 41 -38 f12 1 39 -38 f12 5 39 -38 f12 9 39 -38 f12 11 39 -38 f12 3 40 -38 f12 7 40 diff --git a/tests/zoo/zoo.json b/tests/zoo/zoo.json deleted file mode 100644 index 506568b6a24d9f5066f1673d69e24a45d1109299..0000000000000000000000000000000000000000 --- a/tests/zoo/zoo.json +++ /dev/null @@ -1,18 +0,0 @@ -{ -"hair":1, -"feathers":0, -"eggs":0, -"milk":1, -"airborne":0, -"aquatic":0, -"predator":0, -"toothed":1, -"backbone":1, -"breathes":1, -"venomous":0, -"fins":0, -"legs":6, -"tail":1, -"domestic":0, -"catsize":1 -} diff --git a/tests/zoo/zoo.map b/tests/zoo/zoo.map deleted file mode 100644 index 89838b19a6ef9d3425d66ce4c6ec27f5c3981fdd..0000000000000000000000000000000000000000 --- a/tests/zoo/zoo.map +++ /dev/null @@ -1,38 +0,0 @@ -Categorical -16 -f0 0 =1 -f0 1 =0 -f1 0 =1 -f1 1 =0 -f2 0 =1 -f2 1 =0 -f3 0 =1 -f3 1 =0 -f4 0 =1 -f4 1 =0 -f5 0 =1 -f5 1 =0 -f6 0 =1 -f6 1 =0 -f7 0 =1 -f7 1 =0 -f8 0 =1 -f8 1 =0 -f9 0 =1 -f9 1 =0 -f10 0 =1 -f10 1 =0 -f11 0 =1 -f11 1 =0 -f12 1 =2 -f12 3 =6 -f12 5 =5 -f12 7 =8 -f12 9 =0 -f12 11 =4 -f13 0 =1 -f13 1 =0 -f14 0 =1 -f14 1 =0 -f15 0 =1 -f15 1 =0 diff --git a/tests/zoo/zoo.pkl b/tests/zoo/zoo.pkl deleted file mode 100644 index edfd6540dd861d1260292b0bce1efe6d6a809461..0000000000000000000000000000000000000000 Binary files a/tests/zoo/zoo.pkl and /dev/null differ