B
    Zvd%                 @   s   d Z ddlZddlZddlZddlZddlmZ eejZ	eejZ
dddZe
edkrhddlmZ nddlmZ d	d
 ZdS )zCompatibility fixes for older version of python, numpy, scipy, and
scikit-learn.

If you add content to this file, please give the version of the package at
which the fix is no longer needed.
    N)parse_versionc             C   s.   t tdkrtjj| |ddS tjj| |dS )Nz1.9.0T)axisZkeepdims)r   )
sp_versionr   scipystatsmode)ar    r	   F/var/www/html/venv/lib/python3.7/site-packages/imblearn/utils/fixes.py_mode   s    r   z1.1)_is_arraylike_not_scalar)_is_arraylikec             C   s   t | ot|  S )z3Return True if array is array-like and not a scalar)r   npZisscalar)arrayr	   r	   r
   r      s    r   )r   )__doc__numpyr   r   Zscipy.statsZsklearnZsklearn.utils.fixesr   __version__r   Zsklearn_versionr   Zsklearn.utils.validationr   r   r	   r	   r	   r
   <module>   s   


