
"""simple docstring"""





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


_a									=				{
    'configuration_deta': ['DETA_PRETRAINED_CONFIG_ARCHIVE_MAP', 'DetaConfig'],
}

try:
    if not is_vision_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    _a									=				['DetaImageProcessor']

try:
    if not is_torch_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    _a									=				[
        'DETA_PRETRAINED_MODEL_ARCHIVE_LIST',
        'DetaForObjectDetection',
        'DetaModel',
        'DetaPreTrainedModel',
    ]


if TYPE_CHECKING:
    from .configuration_deta import DETA_PRETRAINED_CONFIG_ARCHIVE_MAP, DetaConfig

    try:
        if not is_vision_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .image_processing_deta import DetaImageProcessor

    try:
        if not is_torch_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .modeling_deta import (
            DETA_PRETRAINED_MODEL_ARCHIVE_LIST,
            DetaForObjectDetection,
            DetaModel,
            DetaPreTrainedModel,
        )

else:
    import sys

    _a									=				_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)



"""simple docstring"""






from sklearn.neural_network import MLPClassifier

lowerCAmelCase__    :    Any			=      [[0.0, 0.0], [1.0, 1.0], [1.0, 0.0], [0.0, 1.0]]
lowerCAmelCase__    :    Optional[int]			=      [0, 1, 0, 0]


lowerCAmelCase__    :    Dict			=      MLPClassifier(
    solver='lbfgs', alpha=1E-5, hidden_layer_sizes=(5, 2), random_state=1
)

clf.fit(X, y)


lowerCAmelCase__    :    Optional[int]			=      [[0.0, 0.0], [0.0, 1.0], [1.0, 1.0]]
lowerCAmelCase__    :    Union[str, Any]			=      clf.predict(test)



def     a_		(   lowerCamelCase			):
				return list(lowerCamelCase			)


if __name__ == "__main__":
						import doctest

						doctest.testmod()



