1
- """
1
+ """
2
2
``imbalanced-learn`` is a set of python methods to deal with imbalanced
3
3
datset in machine learning and pattern recognition.
4
4
"""
@@ -56,7 +56,7 @@ def _import_module_with_version_check(module_name, minimum_version,
56
56
user_friendly_info = ('Module "{0}" could not be found. {1}' ).format (
57
57
module_name ,
58
58
install_info or 'Please install it properly to use'
59
- ' unbalanced_dataset .' )
59
+ ' imbalanced-learn .' )
60
60
exc .args += (user_friendly_info ,)
61
61
raise
62
62
@@ -69,7 +69,7 @@ def _import_module_with_version_check(module_name, minimum_version,
69
69
if version_too_old :
70
70
message = (
71
71
'A {module_name} version of at least {minimum_version} '
72
- 'is required to use unbalanced_dataset . {module_version} was '
72
+ 'is required to use imbalanced-learn . {module_version} was '
73
73
'found. Please upgrade {module_name}' ).format (
74
74
module_name = module_name ,
75
75
minimum_version = minimum_version ,
@@ -81,10 +81,10 @@ def _import_module_with_version_check(module_name, minimum_version,
81
81
82
82
83
83
def _check_module_dependencies (is_imbalanced_dataset_installing = False ):
84
- """Throw an exception if unbalanced_dataset dependencies are not installed.
84
+ """Throw an exception if imbalanced-learn dependencies are not installed.
85
85
Parameters
86
86
----------
87
- is_unbalanced_dataset_installing : boolean
87
+ is_imbalanced_dataset_installing : boolean
88
88
if True, only error on missing packages that cannot be auto-installed.
89
89
if False, error on any missing package.
90
90
Throws
0 commit comments