<commit_before>from distutils.version import LooseVersion

from dipy.utils.optpkg import optional_package

tf, have_tf, _ = optional_package('tensorflow')

if have_tf:
    if LooseVersion(tf.__version__) < LooseVersion('2.0.0'):
        raise ImportError('Please upgrade to TensorFlow 2+')


class MultipleLayerPercepton(object):

    def __init__(self,input_shape=(28,28),
                        num_hidden=[128],
                        act_hidden='relu',
                        dropout = 0.2
                        num_out=10,
                        act_out='softmax',
                        loss='sparse_categorical_crossentropy',
                        optimizer='adam'):

<commit_msg>fixed typos<commit_after>from distutils.version import LooseVersion

from dipy.utils.optpkg import optional_package

tf, have_tf, _ = optional_package('tensorflow')

if have_tf:
    if LooseVersion(tf.__version__) < LooseVersion('2.0.0'):
        raise ImportError('Please upgrade to TensorFlow 2+')


class MultipleLayerPercepton(object):

    def __init__(self,input_shape=(28,28),
                        num_hidden=[128],
                        act_hidden='relu',
                        dropout = 0.2,
                        num_out=10,
                        act_out='softmax',
                        loss='sparse_categorical_crossentropy',
                        optimizer='adam'):


{'fraction_non_alphanumeric': 0.09417685118619698, 'fraction_numerical': 0.021567217828900073, 'mean_word_length': 1.9367088607594938, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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}}
{'dir': 'git-commits-cleaned', 'id': '458497', 'n_tokens_mistral': 408, 'n_tokens_neox': 370, 'n_words': 69}