Skip to content

Commit

Permalink
Update example XML files
Browse files Browse the repository at this point in the history
  • Loading branch information
sevisal committed Sep 22, 2023
1 parent ac3fe9a commit c9eca5e
Show file tree
Hide file tree
Showing 12 changed files with 403 additions and 402 deletions.
68 changes: 51 additions & 17 deletions src/vai_lab/examples/xml_files/KNN-classification_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,76 @@
<child name="Modelling" />
</relationships>
<coordinates>
[(350.0,50),0,{}]
[(350.0, 50), 0, {}]
</coordinates>
<inputdata>
<X file="./examples/supervised_classification/X_tr.csv" />
<Y file="./examples/supervised_classification/Y_tr.csv" />
<X_test file="./examples/supervised_classification/X_tst.csv" />
<Y_test file="./examples/supervised_classification/Y_tst.csv" />
<X file="C:/Users/sevisal/Documents/GitHub/ai-assisted-design-framework/src/vai_lab/examples/supervised_classification/X_tr.csv" />
<Y file="C:/Users/sevisal/Documents/GitHub/ai-assisted-design-framework/src/vai_lab/examples/supervised_classification/Y_tr.csv" />
<X_test file="C:/Users/sevisal/Documents/GitHub/ai-assisted-design-framework/src/vai_lab/examples/supervised_classification/X_tst.csv" />
<Y_test file="C:/Users/sevisal/Documents/GitHub/ai-assisted-design-framework/src/vai_lab/examples/supervised_classification/Y_tst.csv" />
</inputdata>
</Initialiser>
<Modelling name="Modelling">
<inputdata>
<X module="Initialiser" />
</inputdata>
<relationships>
<parent name="Initialiser" />
<child name="Output" />
</relationships>
<coordinates>
[(350.0,350.0),2,{0:'d0-u2'}]
[(350.0, 350.0), 2, {0: 'd0-u2'}]
</coordinates>
<inputdata>
<X module="Initialiser" />
</inputdata>
<plugin type="KNNClassifier" />
<plugin type="KNNClassifier">
<options>
<weights>
distance
</weights>
<n_neighbors>
7
</n_neighbors>
</options>
<method type="fit">
<options>
<X>
X
</X>
<y>
Y
</y>
</options>
</method>
<method type="score">
<options>
<X>
X
</X>
<y>
Y
</y>
</options>
</method>
</plugin>
</Modelling>
<Output name="Output">
<inputdata>
<X module="Modelling" />
</inputdata>
<relationships>
<parent name="Modelling" />
</relationships>
<coordinates>
[(350.0,650),1,{2:'d2-u1'}]
[(350.0, 650), 1, {2: 'd2-u1'}]
</coordinates>
<plugin type="Output">
<outdata>
Modelling
</outdata>
<outpath>
.\examples\results\output.pkl
</outpath>
<options>
<outdata>
Modelling
</outdata>
<outpath>
.\examples\results\output.pkl
</outpath>
</options>
</plugin>
</Output>
</pipeline>
71 changes: 49 additions & 22 deletions src/vai_lab/examples/xml_files/SVR_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,76 @@
<child name="Modelling" />
</relationships>
<coordinates>
[(350.0,50),0,{}]
[(350.0, 50), 0, {}]
</coordinates>
<inputdata>
<X file="./examples/supervised_regression/X_tr.csv" />
<Y file="./examples/supervised_regression/Y_tr.csv" />
<X_test file="./examples/supervised_regression/X_tst.csv" />
<Y_test file="./examples/supervised_regression/Y_tst.csv" />
<X file="C:/Users/sevisal/Documents/GitHub/ai-assisted-design-framework/src/vai_lab/examples/supervised_regression/X_tr.csv" />
<Y file="C:/Users/sevisal/Documents/GitHub/ai-assisted-design-framework/src/vai_lab/examples/supervised_regression/Y_tr.csv" />
<X_test file="C:/Users/sevisal/Documents/GitHub/ai-assisted-design-framework/src/vai_lab/examples/supervised_regression/X_tst.csv" />
<Y_test file="C:/Users/sevisal/Documents/GitHub/ai-assisted-design-framework/src/vai_lab/examples/supervised_regression/Y_tst.csv" />
</inputdata>
</Initialiser>
<Modelling name="Modelling">
<inputdata>
<X module="Initialiser" />
</inputdata>
<relationships>
<parent name="Initialiser" />
<child name="Output" />
</relationships>
<coordinates>
[(350.0,350.0),2,{0:'d0-u2'}]
[(350.0, 350.0), 2, {0: 'd0-u2'}]
</coordinates>
<inputdata>
<X module="Initialiser" />
</inputdata>
<plugin type="SVR">
<C>
0.1
</C>
<kernel>
linear
</kernel>
<options>
<C>
0.01
</C>
<kernel>
linear
</kernel>
</options>
<method type="fit">
<options>
<X>
X
</X>
<y>
Y
</y>
</options>
</method>
<method type="score">
<options>
<X>
X
</X>
<y>
Y
</y>
</options>
</method>
</plugin>
</Modelling>
<Output name="Output">
<inputdata>
<X module="Modelling" />
</inputdata>
<relationships>
<parent name="Modelling" />
</relationships>
<coordinates>
[(350.0,650),1,{2:'d2-u1'}]
[(350.0, 650), 1, {2: 'd2-u1'}]
</coordinates>
<plugin type="Output">
<outdata>
Modelling
</outdata>
<outpath>
.\examples\results\output.pkl
</outpath>
<options>
<outdata>
Modelling
</outdata>
<outpath>
.\examples\results\output.pkl
</outpath>
</options>
</plugin>
</Output>
</pipeline>
55 changes: 30 additions & 25 deletions src/vai_lab/examples/xml_files/canvas_demo.xml
Original file line number Diff line number Diff line change
@@ -1,44 +1,49 @@
<pipeline>
<Initialiser name="Initialiser">
<inputdata>
<X file="./examples/state-action/X_data.csv" />
</inputdata>
<relationships>
<child name="My First UserFeedback Module" />
<child name="User Interaction" />
</relationships>
<coordinates>
[(350.0,50),0,{}]
[(350.0, 50), 0, {}]
</coordinates>
<inputdata>
<X file="C:/Users/sevisal/Documents/GitHub/ai-assisted-design-framework/src/vai_lab/examples/state-action/X_data.csv" />
</inputdata>
</Initialiser>
<UserInteraction name="My First UserFeedback Module">
<plugin type="CanvasInput">
<some_param val="2" />
</plugin>
<UserInteraction name="User Interaction">
<inputdata>
<X module="Initialiser" />
</inputdata>
<relationships>
<parent name="Initialiser" />
<child name="Output" />
</relationships>
</relationships>
<coordinates>
[(350.0,350.0),2,{0:'d0-u2'}]
</coordinates>
[(350.0, 350.0), 2, {0: 'd0-u2'}]
</coordinates>
<plugin type="CanvasInput">
<options />
</plugin>
</UserInteraction>
<Output name="Output">
<inputdata>
<X module="Initialiser" />
<X module="User Interaction" />
</inputdata>
</UserInteraction>
<Output>
<plugin type="Output">
<outdata>
My First UserFeedback Module
</outdata>
<outpath>
.\examples\results\output.pkl
</outpath>
</plugin>
<relationships>
<parent name="My First UserFeedback Module" />
<parent name="User Interaction" />
</relationships>
<coordinates>
[(350.0,650),1,{2:'d2-u1'}]
[(350.0, 650), 1, {2: 'd2-u1'}]
</coordinates>
<plugin type="Output">
<options>
<outdata>
User Interaction
</outdata>
<outpath>
.\examples\results\output.pkl
</outpath>
</options>
</plugin>
</Output>
</pipeline>
81 changes: 59 additions & 22 deletions src/vai_lab/examples/xml_files/k-mean_clustering_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,57 +4,94 @@
<child name="Data Processing" />
</relationships>
<coordinates>
[(350.0,50),0,{}]
[(350.0, 50), 0, {}]
</coordinates>
<inputdata>
<X file="./examples/supervised_regression/X_tr.csv" />
<X_test file="./examples/supervised_regression/X_tst.csv" />
<X file="C:/Users/sevisal/Documents/GitHub/ai-assisted-design-framework/src/vai_lab/examples/supervised_regression/X_tr.csv" />
<X_test file="C:/Users/sevisal/Documents/GitHub/ai-assisted-design-framework/src/vai_lab/examples/supervised_regression/X_tst.csv" />
</inputdata>
</Initialiser>
<DataProcessing name="Data Processing">
<inputdata>
<X module="Initialiser" />
</inputdata>
<relationships>
<parent name="Initialiser" />
<child name="Modelling" />
</relationships>
<coordinates>
[(350,200),2,{0:'d0-u2'}]
[(227, 254), 2, {0: 'd0-u2'}]
</coordinates>
<inputdata>
<X module="Initialiser" />
</inputdata>
<plugin type="MinMaxScaler">
<Data>
X
</Data>
<options>
<feature_range>
(0, 1)
</feature_range>
</options>
<method type="fit">
<options>
<X>
X
</X>
</options>
</method>
</plugin>
</DataProcessing>
<Modelling name="Modelling">
<inputdata>
<X module="Data Processing" />
</inputdata>
<relationships>
<parent name="Data Processing" />
<child name="Output" />
</relationships>
<coordinates>
[(350.0,350.0),3,{2:'d2-u3'}]
[(474, 412), 3, {2: 'd2-u3'}]
</coordinates>
<inputdata>
<X module="Data Processing" />
</inputdata>
<plugin type="KMeans" />
<plugin type="KMeans">
<options>
<n_clusters>
4
</n_clusters>
<max_iter>
500
</max_iter>
</options>
<method type="fit">
<options>
<X>
X
</X>
</options>
</method>
<method type="predict">
<options>
<X>
X
</X>
</options>
</method>
</plugin>
</Modelling>
<Output name="Output">
<inputdata>
<X module="Modelling" />
</inputdata>
<relationships>
<parent name="Modelling" />
</relationships>
<coordinates>
[(350.0,650),1,{3:'d3-u1'}]
[(350.0, 650), 1, {3: 'd3-u1'}]
</coordinates>
<plugin type="Output">
<outdata>
Modelling
</outdata>
<outpath>
.\examples\results\output.pkl
</outpath>
<options>
<outdata>
Modelling
</outdata>
<outpath>
.\examples\results\output.pkl
</outpath>
</options>
</plugin>
</Output>
</pipeline>
Loading

0 comments on commit c9eca5e

Please sign in to comment.