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
aml.predict(X_val) |
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
aml.get_best_model() |
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
from flashML import autoML | |
aml = autoML() | |
aml.fit(X_train, X_test, y_train, y_test, "classification", "f1_score") |
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
pip install flashML |
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
print(automl.model) |
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
from flaml import AutoML | |
automl = AutoML() | |
automl_settings = { | |
"time_budget": 10, | |
"metric": 'accuracy', | |
"task": 'classification', | |
} |
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
from flaml import AutoML | |
# Initialize | |
automl = AutoML() | |
# Specify the constraints | |
automl_settings = { | |
"time_budget": 10, # in seconds | |
"metric": 'accuracy', | |
"task": 'classification', |
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
!pip install flaml |
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
Sentiment_Analysis = hub.Module(name = "senta_bilstm") | |
test_text = ["Believing in yourself means having faith in your own capabilities"] | |
print(Sentiment_Analysis.sentiment_classify(texts = test_text)) |
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
Lexical_Analysis = hub.Module(name = "lac") | |
test_text = ["I am an immortal"] | |
print(Lexical_Analysis.lexical_analysis(texts = test_text)) |
NewerOlder