Skip to content

Commit 879c845

Browse files
committed
Readme updated
1 parent 3844da7 commit 879c845

13 files changed

+61
-6
lines changed

README.md

Lines changed: 61 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ This is an scoring/inference add-on for [Orange3](http://orange.biolab.si). This
55
load [PMML](http://dmg.org/pmml/v4-4/GeneralStructure.html) and [PFA](http://dmg.org/pfa/index.html) models
66
and score data.
77

8-
## Dependencies
8+
Dependencies
9+
------------
10+
911
To use PMML models make sure you have Java installed:
1012
- Java >= 1.8
1113
- pypmml (downloaded during installation)
@@ -18,12 +20,12 @@ Installation
1820

1921
To install the add-on using pip, run
2022
```
21-
pip install orange3-scoring
23+
pip install orange3-scoring
2224
```
2325
To register this add-on with Orange, but keep the code in the development directory (do not copy it to
2426
Python's site-packages directory), run
2527
```
26-
pip install -e .
28+
pip install -e .
2729
```
2830

2931
Usage
@@ -32,8 +34,61 @@ Usage
3234
After the installation, the widget from this add-on is registered with Orange. To run Orange from the terminal,
3335
use
3436
```
35-
python -m Orange.canvas
37+
python -m Orange.canvas
3638
```
37-
The new widget appears in the toolbox bar under the section Example.
39+
The new widget appears in the toolbox bar under the section `Scoring`.
40+
41+
![01_intro](https://github.com/animator/orange3-scoring/blob/master/screens/01_intro.PNG)
42+
43+
Drag and drop the `Load PMML/PFA Model` widget.
44+
45+
![02_loadmodel](https://github.com/animator/orange3-scoring/blob/master/screens/02_loadmodel.PNG)
46+
47+
Load your PMML model and inspect Input and Output field(s). Sample PMML File [here](https://github.com/animator/orange3-scoring/blob/master/orangecontrib/scoring/tests/sample_pmml.xml).
48+
49+
![03_loadmodel_pmml](https://github.com/animator/orange3-scoring/blob/master/screens/03_loadmodel_pmml.PNG)
50+
51+
Add input dataset using `File` widget (iris) and connect the two widgets to `Evaluate PMML/PFA Model` widget. You can inspect the fields in data and the model and view Processing INFO or Errors.
52+
53+
![04_evaluate_load](https://github.com/animator/orange3-scoring/blob/master/screens/04_evaluate_load.PNG)
54+
55+
Now hit `Score` button to score.
56+
57+
![05_evaluate_score](https://github.com/animator/orange3-scoring/blob/master/screens/05_evaluate_score.PNG)
58+
59+
Connect the output to `Data Table` widget to view the results. 3 new columns (cluster, cluster_name & distance) are added after scoring the data obtained for each input record. The actual class value present in the data is also converted to metadata of the result table.
60+
61+
![06_view_result](https://github.com/animator/orange3-scoring/blob/master/screens/06_view_result.PNG)
62+
63+
Now lets load a PFA Model. Sample PFA File [here](https://github.com/animator/orange3-scoring/blob/master/orangecontrib/scoring/tests/sample_iris.json).
64+
65+
![07_loadmodel_pfa](https://github.com/animator/orange3-scoring/blob/master/screens/07_loadmodel_pfa.PNG)
66+
67+
Score the data using new PFA Model.
68+
69+
![08_evaluate_load](https://github.com/animator/orange3-scoring/blob/master/screens/08_evaluate_load.PNG)
70+
71+
Now hit `Score` button to score.
72+
73+
![09_evaluate_score](https://github.com/animator/orange3-scoring/blob/master/screens/09_evaluate_score.PNG)
74+
75+
View the results. You can see the predicted class for iris as provided by the PFA Model.
76+
77+
![10_view_result](https://github.com/animator/orange3-scoring/blob/master/screens/10_view_result.PNG)
78+
79+
Another output signal is produced which contains the `Evaluation Results` which can be connected to `Confusion Matrix`, `ROC Analysis` and `Lift Curve` widgets. We can connect it to the `Confusion Matrix` widget to view the difference in predicted and actual results.
80+
81+
![11_view_confusion](https://github.com/animator/orange3-scoring/blob/master/screens/11_view_confusion.PNG)
82+
83+
84+
Issues, Questions and Feature Requests
85+
--------------------------------------
86+
87+
Please raise an issue/question/request [here](https://github.com/animator/orange3-scoring/issues).
88+
89+
Development
90+
-----------
91+
92+
Want to contribute? Great!
3893

39-
![screenshot](https://github.com/animator/orange3-scoring/blob/master/screens/screenshot.png)
94+
Please raise an [issue](https://github.com/animator/orange3-scoring/issues) to discuss your ideas and send a [pull request](https://github.com/animator/orange3-scoring/pulls).

screens/01_intro.PNG

25.8 KB
Loading

screens/02_loadmodel.PNG

30.5 KB
Loading

screens/03_loadmodel_pmml.PNG

42.3 KB
Loading

screens/04_evaluate_load.PNG

57 KB
Loading

screens/05_evaluate_score.PNG

57 KB
Loading

screens/06_view_result.PNG

92.3 KB
Loading

screens/07_loadmodel_pfa.PNG

54.8 KB
Loading

screens/08_evaluate_load.PNG

59.1 KB
Loading

screens/09_evaluate_score.PNG

59.3 KB
Loading

screens/10_view_result.PNG

88.9 KB
Loading

screens/11_view_confusion.PNG

77.2 KB
Loading

screens/screenshot.png

-49.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)