<jupyter_start><jupyter_text>FirstColFtClassifier<jupyter_code>df = pandas.DataFrame([['woof', 0], ['meow', 1]], columns=['txt', 'lbl'])
df
sk_clf = FirstColFtClassifier(lr=0.3, epoch=10)
sk_clf.fit(df[['txt']], df['lbl'])
sk_clf.predict([['meow']])<jupyter_output><empty_output><jupyter_text>IdxBasedFtClassifier<jupyter_code>from skift import IdxBasedFtClassifier
df = pandas.DataFrame([[5, 'woof', 0], [83, 'meow', 1]], columns=['count', 'txt', 'lbl'])
df
sk_clf = IdxBasedFtClassifier(input_ix=0, lr=0.4, epoch=6)
sk_clf.fit(df[['count', 'txt']], df['lbl'])
sk_clf.predict([['meow']])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.22653721682847897, 'fraction_numerical': 0.024271844660194174, 'mean_word_length': 11.895833333333334, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '201589', 'license': 'MIT', 'n_tokens_mistral': 281, 'n_tokens_neox': 276, 'n_words': 36, 'path': 'test/skift-demo.ipynb', 'repo_name': 'blair101/fastText-for-AI-Challenger-Sentiment-Analysis', 'size': '618'}