diff --git a/source/widgets/visualize/images/ScoringSheetViewer-Example.png b/source/widgets/visualize/images/ScoringSheetViewer-Example.png new file mode 100644 index 0000000..c4d2b93 Binary files /dev/null and b/source/widgets/visualize/images/ScoringSheetViewer-Example.png differ diff --git a/source/widgets/visualize/images/ScoringSheetViewer-stamped.png b/source/widgets/visualize/images/ScoringSheetViewer-stamped.png new file mode 100644 index 0000000..20a3df7 Binary files /dev/null and b/source/widgets/visualize/images/ScoringSheetViewer-stamped.png differ diff --git a/source/widgets/visualize/images/ScoringSheetViewer-widget.png b/source/widgets/visualize/images/ScoringSheetViewer-widget.png deleted file mode 100644 index 3d67202..0000000 Binary files a/source/widgets/visualize/images/ScoringSheetViewer-widget.png and /dev/null differ diff --git a/source/widgets/visualize/images/ScoringSheetViewer-workflow.png b/source/widgets/visualize/images/ScoringSheetViewer-workflow.png deleted file mode 100644 index 1384ff7..0000000 Binary files a/source/widgets/visualize/images/ScoringSheetViewer-workflow.png and /dev/null differ diff --git a/source/widgets/visualize/scoringsheetviewer.md b/source/widgets/visualize/scoringsheetviewer.md index c05d5c2..6864f09 100644 --- a/source/widgets/visualize/scoringsheetviewer.md +++ b/source/widgets/visualize/scoringsheetviewer.md @@ -9,20 +9,25 @@ A widget for visualizing the scoring sheet predictions. **Outputs** -- Features: features used in the scoring sheet +- Features: selected features used in the scoring sheet -![](images/ScoringSheetViewer-widget.png) +**Scoring Sheet Viewer** widget offers a simple and intuitive way of visualizing the predictions of the scoring sheet model. The widget takes as input a trained scoring sheet model and an optional dataset (instance) on which we want to visualize the predictions. The widget presents us with a table that visualizes each feature's contribution to the final score, where a higher score indicates a greater chance for an instance to be classified with the target class. Each feature's contribution can be positive or negative, indicating whether it increases or decreases the risk. -**Scoring Sheet Viewer** widget offers a simple and intuitive way of visualizing the predictions of the scoring sheet model. The widget takes as input a trained scoring sheet model and a optional dataset (instance) on which we want to visualize the predictions. The widget presents us with a table that visualizes each feature's contribution to the final score, where a higher score indicates a greater chance for an individual to be classified with the target class. Each feature's contribution can be positive or negative, indicating whether it increases or decreases the risk. +![](images/ScoringSheetViewer-stamped.png){width=400px} +1. *Target class*: set the target class for viewing. +2. Scoring sheet with attributed points and an indicating, whether the attributes are selected for the output. +3. Total scores and probabilities for a given instance. + +The widget output selected features, which can be used downstream in [Scatter Plot](../visualize/scatterplot.md) or [Sieve Diagram](../visualize/sievediagram.md). Example ------- -![](images/ScoringSheetViewer-workflow.png) +In this example, we first sample the *heart_disease* data, with 70% used to train the [Scoring Sheet](../model/scoringsheet.md) model and 30% routed to the [Data Table](../data/datatable.md) widget. This setup allows us to select instances and observe how the scoring sheet performs on new, unseen data. -In this example, we first sample the data, with a portion used to train the Scoring Sheet model and a part routed to the Table widget. This setup allows us to select instances and observe how the scoring sheet performs with new, unseen data. +![](images/ScoringSheetViewer-Example.png) -Let's analyze and learn to interpret the scoring sheet using the example. It features five decision parameters, with points ranging from -5 to 5. We have set the target class to '1,' indicating the 'presence' of heart disease. Positive-value decision parameters increase the risk of heart disease, while those with negative values reduce it. +Let's analyze and learn to interpret the scoring sheet using the example. It features five decision parameters, with points ranging from -5 to 5. We have set the target class to '1', indicating the 'presence' of heart disease. Positive-value decision parameters increase the risk of heart disease (i.e. reversable defect and asymptomatic chest pain), while those with negative values reduce it (i.e. ST by exercise higher than 1, no exercise induced angina, and few major vessels colored). -Consider a selected instance from the Data Table widget. It has a 'slope peak exc ST' attribute value of 'upsloping', which reduces the heart disease risk by 3 points. However, it also has the 'chest pain' attribute set to 'asymptomatic', increasing the risk by 5 points. This combination results in a total score of 2, corresponding to a 71.6% probability of having heart disease. +Consider a selected instance from the Data Table widget. It has a 'exerc ind ang' attribute value of '0', which reduces the heart disease risk by 3 points. However, it also has the 'chest pain' attribute set to 'asymptomatic', increasing the risk by 4 points. This combination results in a total score of 2, corresponding to a 79.6% probability of having heart disease. diff --git a/source/widgets/visualize/workflows/scoringsheetviewer.ows b/source/widgets/visualize/workflows/scoringsheetviewer.ows new file mode 100644 index 0000000..84d88aa --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lCiMBUxTVEFUlGhDSwBoEIhlXZQojARNRURWlGhDSwFoEIhlZXNoMUsB +dWhoKGidSwKGlGifSwKGlGihSwKGlGijSwKGlGilSwKGlGinSwKGlGipSwKGlGirSwKGlGitSwKG +lGivSwKGlGixSwKGlGizSwKGlGi1SwKGlHSUaI8paJBot0sChpSFlGiUXZR1Ymg2KYGUfZQoaDl9 +lChoO12UaC99lGg7XZQoXZQojAxzZXBhbCBsZW5ndGiUaENLAGgQiGVdlCiMC3NlcGFsIHdpZHRo +lGhDSwBoEIhlXZQojAxwZXRhbCBsZW5ndGiUaENLAGgQiGVdlCiMC3BldGFsIHdpZHRolGhDSwBo +EIhlXZQojARpcmlzlGhHSwGMLElyaXMtc2V0b3NhLCBJcmlzLXZlcnNpY29sb3IsIElyaXMtdmly +Z2luaWNhlIllZXNoMUsBdWhoKGjQSwKGlGjSSwKGlGjUSwKGlGjWSwKGlHSUaI8paJBo2F2UKIwL +SXJpcy1zZXRvc2GUjA9JcmlzLXZlcnNpY29sb3KUjA5JcmlzLXZpcmdpbmljYZRlhpSFlGiUXZR1 +YmV1Lg== + + {'compatibility_mode': False, 'controlAreaVisible': True, 'number_of_folds': 10, 'replacement': False, 'sampleSizeNumber': 1, 'sampleSizePercentage': 70, 'sampleSizeSqlPercentage': 0.1, 'sampleSizeSqlTime': 1, 'sampling_type': 0, 'savedWidgetGeometry': None, 'selectedFold': 1, 'sql_dl': False, 'stratify': False, 'use_seed': True, '__version__': 2} + {'auto_apply': True, 'controlAreaVisible': True, 'custom_features_checkbox': False, 'learner_name': '', 'max_points_per_param': 5, 'num_attr_after_selection': 20, 'num_decision_params': 5, 'num_input_features': 1, 'savedWidgetGeometry': b'\x01\xd9\xd0\xcb\x00\x03\x00\x00\x00\x00\x02:\x00\x00\x01/\x00\x00\x03\x9a\x00\x00\x02\x99\x00\x00\x02:\x00\x00\x01K\x00\x00\x03\x9a\x00\x00\x02\x99\x00\x00\x00\x00\x02\x00\x00\x00\x05\xe8\x00\x00\x02:\x00\x00\x01K\x00\x00\x03\x9a\x00\x00\x02\x99', '__version__': 1} + {'auto_commit': True, 'color_by_class': True, 'controlAreaVisible': False, 'savedWidgetGeometry': b'\x01\xd9\xd0\xcb\x00\x03\x00\x00\x00\x00\x00&\x00\x00\x01d\x00\x00\x02u\x00\x00\x02A\x00\x00\x00&\x00\x00\x01\x80\x00\x00\x02u\x00\x00\x02A\x00\x00\x00\x00\x00\x00\x00\x00\x05\xe8\x00\x00\x00&\x00\x00\x01\x80\x00\x00\x02u\x00\x00\x02A', 'select_rows': True, 'show_attribute_labels': True, 'show_distributions': False, 'stored_selection': {'rows': [0], 'columns': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]}, 'stored_sort': [], '__version__': 1} + {'controlAreaVisible': True, 'savedWidgetGeometry': b'\x01\xd9\xd0\xcb\x00\x03\x00\x00\x00\x00\x02\x87\x00\x00\x01\x06\x00\x00\x04g\x00\x00\x02\x9d\x00\x00\x02\x87\x00\x00\x01"\x00\x00\x04g\x00\x00\x02\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x05\xe8\x00\x00\x02\x87\x00\x00\x01"\x00\x00\x04g\x00\x00\x02\x9d', '__version__': 1} + + + + +