-
Notifications
You must be signed in to change notification settings - Fork 560
Creating the "visualization" api for FLAML #768
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
Open
chadhardin
wants to merge
34
commits into
microsoft:main
Choose a base branch
from
chadhardin:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 29 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
719c8bd
added new viz api
chadhardin f51a924
Merge branch 'main' of https://github.com/chadhardin/FLAMLTest
chadhardin 8f130b8
if statement added for different plots
chadhardin 41b084a
Merge branch 'microsoft:main' into main
chadhardin 58ea65f
Merge branch 'microsoft:main' into main
chadhardin 4ca305e
Small Updates
chadhardin bdf75d0
Merge branch 'main' of https://github.com/chadhardin/FLAMLTest
chadhardin f0e7322
Merge branch 'microsoft:main' into main
chadhardin 1d9cd45
Visualization created with important features
chadhardin 4661b3f
Merge branch 'main' of https://github.com/chadhardin/FLAMLTest
chadhardin a9d5f57
Renamed type to feature_importance to be specific
chadhardin cb9ed36
Adding minor comments
chadhardin 5fff7b9
Included an example in visualization
chadhardin 92e778f
Merge branch 'microsoft:main' into main
chadhardin 7d9ade5
Merge branch 'microsoft:main' into main
chadhardin 5e868cf
Adding the logger warning and save fig
chadhardin 28a2a3b
Merge branch 'main' of https://github.com/chadhardin/FLAMLTest
chadhardin 78f08f7
Forgot a comma
chadhardin 1d4d879
Merge branch 'microsoft:main' into main
chadhardin 758290c
Merge branch 'main' into main
qingyun-wu 0cfb2f7
Feature and validation updates
chadhardin f53aeee
test file added
chadhardin a940568
Updated testing file name
chadhardin 540d40b
Merge branch 'microsoft:main' into main
chadhardin 73cdcad
Merge branch 'microsoft:main' into main
chadhardin f11f811
Merge branch 'microsoft:main' into main
chadhardin ec2e26e
Merge remote-tracking branch 'upstream/main' into main
qingyun-wu aca206b
simplify api
qingyun-wu 3eee239
Merge branch 'main' into main
qingyun-wu 149a97e
Update setup.py
qingyun-wu df73b4f
merge
qingyun-wu 7e95240
Update .pre-commit-config.yaml
qingyun-wu 229ffc7
revert
qingyun-wu aa0ceeb
Merge branch 'main' into main
qingyun-wu 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 hidden or 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 hidden or 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 hidden or 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,24 @@ | ||
| from flaml import AutoML | ||
| from flaml.data import load_openml_dataset | ||
|
|
||
|
|
||
| def test_fi_lc(): | ||
| X_train, X_test, y_train, y_test = load_openml_dataset( | ||
| dataset_id=1169, data_dir="./" | ||
| ) | ||
| settings = { | ||
| "time_budget": 10, # total running time in seconds | ||
| "metric": "accuracy", # can be: 'r2', 'rmse', 'mae', 'mse', 'accuracy', 'roc_auc', 'roc_auc_ovr', | ||
| # 'roc_auc_ovo', 'log_loss', 'mape', 'f1', 'ap', 'ndcg', 'micro_f1', 'macro_f1' | ||
| "task": "classification", # task type | ||
| "log_file_name": "airlines_experiment.log", # flaml log file | ||
| "seed": 7654321, # random seed | ||
| } | ||
| automl = AutoML(**settings) | ||
| automl.fit(X_train=X_train, y_train=y_train) | ||
| automl.visualize(type="feature_importance", plot_filename="feature_importance") | ||
| automl.visualize(type="learning_curve", plot_filename="learning_curve") | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| test_fi_lc() |
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.
Uh oh!
There was an error while loading. Please reload this page.