<jupyter_start><jupyter_text>What Is Machine Learning?  Introducing Scikit-Learn  Basics of the APIThe steps of one Scikit-Learn estimator:1. Choose a model and import it (The models are class).2. Make an instance and choose the hyperparameters.3. Arrange data into a features matrix and target vector.4. Fit the model to your data by calling the ``fit()`` method of the model instance.5. Apply the Model to new data:   - For supervised learning, often we predict labels for unknown data using the ``predict()`` method.   - For unsupervised learning, we often transform or infer properties of the data using the ``transform()`` or ``predict()`` method.<jupyter_code>class Estimator(object):
    def fit(self, X, y=None):
        """Fits estimator to data."""
        # set state of ``self``
        return self<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09166666666666666, 'fraction_numerical': 0.005952380952380952, 'mean_word_length': 4.191358024691358, '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': '227810', 'license': 'MIT', 'n_tokens_mistral': 235, 'n_tokens_neox': 225, 'n_words': 109, 'path': 'data_mining/2-machine_learning.ipynb', 'repo_name': 'catcry/IEC2019-Vafaei', 'size': '840'}