Created
May 19, 2019 22:22
-
-
Save robotenique/32f7beb25d7b07ecadd6adc35d819915 to your computer and use it in GitHub Desktop.
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 fklearn.training.classification import nlp_logistic_classification_learner | |
from fklearn.training.pipeline import build_pipeline | |
from fklearn.training.utils import log_learner_time | |
def training_pipeline(text_cols, target_column, vectorizer_params, logistic_params): | |
return log_learner_time( | |
build_pipeline( | |
nlp_logistic_classification_learner( | |
text_feature_cols=text_cols, | |
target=target_column, | |
vectorizer_params=vectorizer_params, | |
logistic_params=logistic_params | |
) | |
), "tweet_sentiment_analysis") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment