<jupyter_start><jupyter_text>SGDClassifier<jupyter_code>grid = {
    'loss':['log','hinge','perceptron'],
    'penalty':['l2','l1','elasticnet'],
    'alpha':[0.25],
    'shuffle':[True,False],
    'warm_start':[True,False],
    'l1_ratio':[0.25],
    'epsilon':[0.25],
    'power_t':[0.25],
    'average':[False,True]
}
gs = GridSearchCV(SGDClassifier(),cv=2,verbose=25,param_grid=grid).fit(X_train,y_train)
gs.score(X_test,y_test)
pickle.dump(gs,open('model.pkl','wb'))
X
pickle.dump(cv,open('transformer.pkl','wb'))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.24087591240875914, 'fraction_numerical': 0.032846715328467155, 'mean_word_length': 7.318181818181818, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '468167', 'license': 'Apache-2.0', 'n_tokens_mistral': 250, 'n_tokens_neox': 239, 'n_words': 16, 'path': 'ML/names-to-gender/main.ipynb', 'repo_name': 'Programmer-RD-AI/MCR-V3', 'size': '548'}