-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: show matplotlib dataset pngs #887
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
4cd093a
displaying the pngs in the metadata panel
tynandebold eabe4d6
renaming of files, etc; expand matplotlib img
tynandebold 41fda4f
Merge branch 'main' of https://github.com/kedro-org/kedro-viz into fe…
tynandebold f48e7d3
fix comment in type
tynandebold 762b172
format fix
tynandebold 1014fde
fix import
tynandebold 1c18e80
another format fix
tynandebold 21480ee
added matplotlib to reqs
rashidakanchwala 3199a60
Merge branch 'main' of https://github.com/kedro-org/kedro-viz into fe…
tynandebold 4a35a8f
Added tests
rashidakanchwala e38c4a6
Merge branch 'feature/show-matplotlib-dataset-pngs' of https://github…
tynandebold d864bad
fix height issue; add matplotlib node to demo project
tynandebold 5d62ded
update release.md
tynandebold 3c99820
Change requirements setup
antonymilne 19c4a58
pr-review fixes
tynandebold d9d1fa4
Fix tests
antonymilne 06f5b9a
Fix tests
antonymilne 4627755
cleanup
tynandebold a3b2a6d
Merge branch 'main' into feature/show-matplotlib-dataset-pngs
tynandebold dca6345
update release notes
tynandebold 33babf7
Merge branch 'feature/show-matplotlib-dataset-pngs' of https://github…
tynandebold File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
demo-project/data/09_tracking/linear_params.json/2022-06-06T18.02.47.732Z/linear_params.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"model_type": "LinearRegression", | ||
"fit_intercept": true, | ||
"copy_X": true, | ||
"positive": false | ||
} |
3 changes: 3 additions & 0 deletions
3
demo-project/data/09_tracking/linear_score.json/2022-06-06T18.02.47.732Z/linear_score.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"r2_score": 0.40296896595214116 | ||
} |
15 changes: 15 additions & 0 deletions
15
demo-project/data/09_tracking/rf_params.json/2022-06-06T18.02.47.732Z/rf_params.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"model_type": "RandomForestRegressor", | ||
"n_estimators": 100, | ||
"criterion": "squared_error", | ||
"min_samples_split": 2, | ||
"min_samples_leaf": 1, | ||
"min_weight_fraction_leaf": 0, | ||
"max_features": "auto", | ||
"min_impurity_decrease": 0, | ||
"bootstrap": true, | ||
"oob_score": false, | ||
"verbose": 0, | ||
"warm_start": false, | ||
"ccp_alpha": 0 | ||
} |
3 changes: 3 additions & 0 deletions
3
demo-project/data/09_tracking/rf_score.json/2022-06-06T18.02.47.732Z/rf_score.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"r2_score": 0.42034590382281145 | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
demo-project/src/demo_project/pipelines/reporting/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
kedro[plotly.PlotlyDataSet, plotly.JSONDataSet]==0.18.1 | ||
matplotlib==3.5.0 | ||
kedro[plotly.PlotlyDataSet, plotly.JSONDataSet, matplotlib.MatplotlibWriter]==0.18.1 | ||
pillow==9.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
kedro[pandas.CSVDataSet,pandas.ExcelDataSet, pandas.ParquetDataSet, plotly.PlotlyDataSet]==0.18.1 | ||
kedro[pandas.CSVDataSet,pandas.ExcelDataSet, pandas.ParquetDataSet, plotly.PlotlyDataSet, matplotlib.MatplotlibWriter]==0.18.1 | ||
scikit-learn~=1.0 | ||
pillow~=9.0 | ||
matplotlib==3.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed? Seems to me that we should be able to run the tests without plotly installed (related to the point of removing plotly from requirements.txt).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure. @rashidakanchwala? Should I add it back in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so I removed it, because it wasn't actually being used. :S
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this is used even though
patched_import
is not explicitly mentioned in the test. When you@patch
it decorates the test function, and doing so also passes on an argument to the test function.But it turns out it's not needed for another reason: because plotly is a requirement of kedro-viz.