This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* simplify examples * . * . * fix * w
- Loading branch information
Showing
13 changed files
with
221 additions
and
236 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
from flash.core.data import download_data | ||
from flash.tabular import TabularClassifier | ||
|
||
if __name__ == "__main__": | ||
# 1. Download the data | ||
download_data("https://pl-flash-data.s3.amazonaws.com/titanic.zip", 'data/') | ||
|
||
# 1. Download the data | ||
download_data("https://pl-flash-data.s3.amazonaws.com/titanic.zip", 'data/') | ||
# 2. Load the model from a checkpoint | ||
model = TabularClassifier.load_from_checkpoint("https://flash-weights.s3.amazonaws.com/tabular_classification_model.pt") | ||
|
||
# 2. Load the model from a checkpoint | ||
model = TabularClassifier.load_from_checkpoint( | ||
"https://flash-weights.s3.amazonaws.com/tabular_classification_model.pt" | ||
) | ||
|
||
# 3. Generate predictions from a sheet file! Who would survive? | ||
predictions = model.predict("data/titanic/titanic.csv") | ||
print(predictions) | ||
# 3. Generate predictions from a sheet file! Who would survive? | ||
predictions = model.predict("data/titanic/titanic.csv") | ||
print(predictions) |
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.