From 6112a7ab0aee8748316a5f53793e57a863ee6d49 Mon Sep 17 00:00:00 2001 From: Jaime Sendra Date: Thu, 16 Apr 2020 19:28:45 +0200 Subject: [PATCH] names --- .github/PULL_REQUEST_TEMPLATE.md | 10 +- .gitignore | 2 +- README.md | 38 +++---- docs/ipynb2markdown.py | 2 +- docs/make_api.py | 18 ++-- docs/make_userguide.py | 2 +- docs/md2pdf.py | 8 +- docs/mkdocs.yml | 10 +- docs/sources/CHANGELOG.md | 2 +- docs/sources/CONTRIBUTING.md | 98 +++++++++---------- docs/sources/cite.md | 4 +- docs/sources/contributors.md | 2 +- docs/sources/discuss.md | 2 +- docs/sources/index.md | 36 +++---- docs/sources/installation.md | 34 +++---- mlearner/__init__.py | 2 +- mlearner/_base/__init__.py | 2 +- mlearner/_base/_base_model.py | 2 +- mlearner/_base/_classifier.py | 2 +- mlearner/_base/_cluster.py | 2 +- mlearner/_base/_iterative_model.py | 2 +- mlearner/_base/_multiclass.py | 2 +- mlearner/_base/_multilayer.py | 2 +- mlearner/_base/_regressor.py | 2 +- mlearner/_base/tests/test_base_model.py | 6 +- mlearner/_base/tests/test_classifier.py | 6 +- mlearner/_base/tests/test_cluster.py | 6 +- mlearner/_base/tests/test_iterative_model.py | 4 +- mlearner/_base/tests/test_multiclass.py | 4 +- mlearner/_base/tests/test_multilayer.py | 4 +- mlearner/_base/tests/test_regressor.py | 8 +- mlearner/classifier/__init__.py | 2 +- mlearner/classifier/adaline.py | 4 +- mlearner/classifier/ensemble_vote.py | 8 +- mlearner/classifier/logistic_regression.py | 4 +- mlearner/classifier/multilayerperceptron.py | 4 +- mlearner/classifier/perceptron.py | 4 +- mlearner/classifier/softmax_regression.py | 4 +- .../classifier/stacking_classification.py | 6 +- .../classifier/stacking_cv_classification.py | 6 +- mlearner/classifier/tests/test_adaline.py | 8 +- .../tests/test_ensemble_vote_classifier.py | 8 +- .../tests/test_logistic_regression.py | 8 +- .../tests/test_multilayerperceptron.py | 8 +- mlearner/classifier/tests/test_perceptron.py | 8 +- .../tests/test_softmax_regression.py | 8 +- .../tests/test_stacking_classifier.py | 10 +- .../tests/test_stacking_cv_classifier.py | 10 +- mlearner/cluster/__init__.py | 2 +- mlearner/cluster/kmeans.py | 4 +- mlearner/cluster/tests/test_kmeans.py | 8 +- mlearner/data/__init__.py | 2 +- mlearner/data/autompg.py | 4 +- mlearner/data/boston_housing.py | 4 +- mlearner/data/iris.py | 4 +- mlearner/data/local_mnist.py | 4 +- mlearner/data/mnist.py | 4 +- mlearner/data/multiplexer.py | 6 +- mlearner/data/tests/test_datasets.py | 14 +-- mlearner/data/tests/test_iris.py | 2 +- mlearner/data/tests/test_multiplexer.py | 6 +- mlearner/data/three_blobs.py | 4 +- mlearner/data/wine.py | 4 +- mlearner/evaluate/__init__.py | 2 +- mlearner/evaluate/accuracy.py | 2 +- mlearner/evaluate/bias_variance_decomp.py | 2 +- mlearner/evaluate/bootstrap.py | 6 +- mlearner/evaluate/bootstrap_outofbag.py | 4 +- mlearner/evaluate/bootstrap_point632.py | 6 +- mlearner/evaluate/cochrans_q.py | 4 +- mlearner/evaluate/confusion_matrix.py | 4 +- mlearner/evaluate/f_test.py | 6 +- mlearner/evaluate/feature_importance.py | 4 +- mlearner/evaluate/holdout.py | 2 +- mlearner/evaluate/lift_score.py | 4 +- mlearner/evaluate/mcnemar.py | 8 +- mlearner/evaluate/permutation.py | 4 +- mlearner/evaluate/proportion_difference.py | 4 +- mlearner/evaluate/scoring.py | 8 +- mlearner/evaluate/tests/test_accuracy.py | 4 +- .../tests/test_bias_variance_decomp.py | 8 +- mlearner/evaluate/tests/test_bootstrap.py | 6 +- .../evaluate/tests/test_bootstrap_outofbag.py | 6 +- .../evaluate/tests/test_bootstrap_point632.py | 8 +- mlearner/evaluate/tests/test_cochran_q.py | 10 +- .../tests/test_combined_ftest_5x2cv.py | 8 +- .../evaluate/tests/test_confusion_matrix.py | 4 +- mlearner/evaluate/tests/test_f_test.py | 6 +- .../evaluate/tests/test_feature_importance.py | 6 +- mlearner/evaluate/tests/test_holdout.py | 10 +- mlearner/evaluate/tests/test_lift_score.py | 6 +- mlearner/evaluate/tests/test_mcnemar_table.py | 6 +- .../evaluate/tests/test_mcnemar_tables.py | 6 +- mlearner/evaluate/tests/test_mcnemar_test.py | 6 +- .../evaluate/tests/test_paired_ttest_5x2cv.py | 8 +- .../evaluate/tests/test_paired_ttest_kfold.py | 8 +- .../tests/test_paired_ttest_resampled.py | 10 +- mlearner/evaluate/tests/test_permutation.py | 6 +- .../tests/test_proportion_difference.py | 4 +- mlearner/evaluate/tests/test_scoring.py | 4 +- mlearner/evaluate/ttest.py | 8 +- mlearner/externals/__init__.py | 2 +- mlearner/feature_extraction/__init__.py | 2 +- mlearner/feature_extraction/base.py | 2 +- .../linear_discriminant_analysis.py | 4 +- .../principal_component_analysis.py | 4 +- mlearner/feature_extraction/rbf_kernel_pca.py | 4 +- .../feature_extraction/tests/test_base.py | 4 +- .../tests/test_kernel_pca.py | 4 +- .../test_linear_discriminant_analysis.py | 8 +- .../test_principal_component_analysis.py | 10 +- mlearner/feature_selection/__init__.py | 2 +- mlearner/feature_selection/column_selector.py | 4 +- .../exhaustive_feature_selector.py | 4 +- .../sequential_feature_selector.py | 6 +- .../tests/test_column_selector.py | 4 +- .../tests/test_exhaustive_feature_selector.py | 8 +- .../tests/test_sequential_feature_selector.py | 8 +- ...uential_feature_selector_fixed_features.py | 6 +- mlearner/file_io/__init__.py | 2 +- mlearner/file_io/find_filegroups.py | 4 +- mlearner/file_io/find_files.py | 4 +- mlearner/frequent_patterns/__init__.py | 2 +- mlearner/frequent_patterns/apriori.py | 10 +- .../frequent_patterns/association_rules.py | 4 +- mlearner/frequent_patterns/fpcommon.py | 2 +- mlearner/frequent_patterns/fpgrowth.py | 4 +- mlearner/frequent_patterns/fpmax.py | 4 +- .../frequent_patterns/tests/test_apriori.py | 4 +- .../tests/test_association_rules.py | 6 +- .../frequent_patterns/tests/test_fpbase.py | 6 +- .../frequent_patterns/tests/test_fpgrowth.py | 2 +- .../frequent_patterns/tests/test_fpmax.py | 2 +- mlearner/image/__init__.py | 2 +- mlearner/image/extract_face_landmarks.py | 10 +- mlearner/image/eyepad_align.py | 6 +- .../tests/test_extract_face_landmarks.py | 10 +- mlearner/image/tests/test_eyepad_align.py | 12 +-- mlearner/image/utils.py | 2 +- mlearner/math/__init__.py | 2 +- mlearner/math/counting.py | 6 +- mlearner/math/linalg.py | 2 +- mlearner/math/tests/test_counting.py | 8 +- mlearner/math/tests/test_linalg.py | 6 +- mlearner/plotting/__init__.py | 2 +- mlearner/plotting/checkerboard.py | 4 +- mlearner/plotting/decision_regions.py | 6 +- mlearner/plotting/ecdf.py | 4 +- mlearner/plotting/enrichment_plot.py | 4 +- mlearner/plotting/heatmap.py | 4 +- mlearner/plotting/learning_curves.py | 4 +- mlearner/plotting/pca_correlation_graph.py | 8 +- mlearner/plotting/plot_confusion_matrix.py | 4 +- mlearner/plotting/plot_linear_regression.py | 4 +- .../plot_sequential_feature_selection.py | 6 +- mlearner/plotting/remove_chartjunk.py | 4 +- mlearner/plotting/scatter.py | 4 +- mlearner/plotting/scatterplotmatrix.py | 2 +- mlearner/plotting/stacked_barplot.py | 4 +- mlearner/plotting/tests/test_checkerboard.py | 4 +- .../plotting/tests/test_decision_regions.py | 10 +- mlearner/plotting/tests/test_ecdf.py | 6 +- mlearner/plotting/tests/test_heatmap.py | 4 +- .../plotting/tests/test_learning_curves.py | 4 +- .../plotting/tests/test_pca_corr_graph.py | 4 +- mlearner/preprocessing/__init__.py | 2 +- mlearner/preprocessing/copy_transformer.py | 4 +- mlearner/preprocessing/dense_transformer.py | 4 +- mlearner/preprocessing/mean_centering.py | 4 +- mlearner/preprocessing/onehot.py | 4 +- mlearner/preprocessing/scaling.py | 6 +- mlearner/preprocessing/shuffle.py | 10 +- .../tests/test__scaling__minmax_scaling.py | 4 +- .../tests/test__scaling__standardizing.py | 4 +- .../tests/test_copy_transformer.py | 6 +- .../tests/test_dense_transformer.py | 4 +- .../tests/test_mean_centering.py | 4 +- mlearner/preprocessing/tests/test_onehot.py | 4 +- .../test_shuffle_shuffle_arrays_unison.py | 4 +- .../tests/test_transactionencoder.py | 6 +- mlearner/preprocessing/transactionencoder.py | 4 +- mlearner/regressor/__init__.py | 2 +- mlearner/regressor/linear_regression.py | 4 +- mlearner/regressor/stacking_cv_regression.py | 6 +- mlearner/regressor/stacking_regression.py | 4 +- .../regressor/tests/test_linear_regression.py | 6 +- .../tests/test_stacking_cv_regression.py | 8 +- .../tests/test_stacking_regression.py | 8 +- mlearner/text/__init__.py | 2 +- mlearner/text/names.py | 8 +- mlearner/text/tests/test_generalize_names.py | 2 +- .../tests/test_generalize_names_duplcheck.py | 4 +- mlearner/text/tests/test_tokenizer.py | 4 +- mlearner/text/tokenizer.py | 6 +- mlearner/utils/__init__.py | 2 +- mlearner/utils/checking.py | 2 +- mlearner/utils/counter.py | 4 +- mlearner/utils/testing.py | 2 +- mlearner/utils/tests/test_checking_inputs.py | 6 +- mlearner/utils/tests/test_counter.py | 4 +- mlearner/utils/tests/test_testing.py | 4 +- setup.py | 26 ++--- 202 files changed, 608 insertions(+), 608 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 06456a4..378db36 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -14,14 +14,14 @@ Fixes #366 ### Pull Request Checklist - [ ] Added a note about the modification or contribution to the `./docs/sources/CHANGELOG.md` file (if applicable) -- [ ] Added appropriate unit test functions in the `./mlearn/*/tests` directories (if applicable) -- [ ] Modify documentation in the corresponding Jupyter Notebook under `mlearn/docs/sources/` (if applicable) -- [ ] Ran `PYTHONPATH='.' pytest ./mlearn -sv` and make sure that all unit tests pass (for small modifications, it might be sufficient to only run the specific test file, e.g., `PYTHONPATH='.' pytest ./mlearn/classifier/tests/xxx.py -sv`) -- [ ] Checked for style issues by running `flake8 ./mlearn` +- [ ] Added appropriate unit test functions in the `./mlearner/*/tests` directories (if applicable) +- [ ] Modify documentation in the corresponding Jupyter Notebook under `mlearner/docs/sources/` (if applicable) +- [ ] Ran `PYTHONPATH='.' pytest ./mlearner -sv` and make sure that all unit tests pass (for small modifications, it might be sufficient to only run the specific test file, e.g., `PYTHONPATH='.' pytest ./mlearner/classifier/tests/xxx.py -sv`) +- [ ] Checked for style issues by running `flake8 ./mlearner` diff --git a/.gitignore b/.gitignore index 6191b69..ab7f674 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ # Documentation builds # docs/site/ -# docs/mlearn.pdf +# docs/mlearner.pdf # Temporary documentation files # docs/sources/user_guide/*.md diff --git a/README.md b/README.md index e19a73e..f65a741 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ [![DOI](http://joss.theoj.org/papers/10.21105/joss.00638/status.svg)](https://doi.org/10.21105/joss.00638) -[![Build Status](https://travis-ci.org/jaisenbe58r/mlearn.svg?branch=master)](https://travis-ci.org/jaisenbe58r/mlearn) -[![Build status](https://ci.appveyor.com/api/projects/status/7vx20e0h5dxcyla2/branch/master?svg=true)](https://ci.appveyor.com/project/jaisenbe58r/mlearn/branch/master) -[![Codacy Badge](https://api.codacy.com/project/badge/Grade/2a199e28871c477d9ecf6e200b4977b9)](https://www.codacy.com/manual/jaisenbe58r/mlearn?utm_source=github.com&utm_medium=referral&utm_content=jaisenbe58r/mlearn&utm_campaign=Badge_Grade) -[![Coverage Status](https://coveralls.io/repos/jaisenbe58r/mlearn/badge.svg?branch=master&service=github)](https://coveralls.io/github/jaisenbe58r/mlearn?branch=master) +[![Build Status](https://travis-ci.org/jaisenbe58r/mlearner.svg?branch=master)](https://travis-ci.org/jaisenbe58r/mlearner) +[![Build status](https://ci.appveyor.com/api/projects/status/7vx20e0h5dxcyla2/branch/master?svg=true)](https://ci.appveyor.com/project/jaisenbe58r/mlearner/branch/master) +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/2a199e28871c477d9ecf6e200b4977b9)](https://www.codacy.com/manual/jaisenbe58r/mlearner?utm_source=github.com&utm_medium=referral&utm_content=jaisenbe58r/mlearner&utm_campaign=Badge_Grade) +[![Coverage Status](https://coveralls.io/repos/jaisenbe58r/mlearner/badge.svg?branch=master&service=github)](https://coveralls.io/github/jaisenbe58r/mlearner?branch=master) ![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg) ![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg) ![Python 3.7](https://img.shields.io/badge/python-3.8-blue.svg) @@ -12,7 +12,7 @@ ![](./docs/sources/img/logo.png) -**mlearn (machine learning for data enginnering) is a Python library of useful tools for the day-to-day data science tasks.** +**mlearner (machine learning for data enginnering) is a Python library of useful tools for the day-to-day data science tasks.**
@@ -22,47 +22,47 @@ Jaime Sendra - 2020 ## Links -- **Documentation:** [http://jaisenbe58r.github.io/mlearn](http://jaisenbe58r.github.io/mlearn) -- PyPI: [https://pypi.python.org/pypi/mlearn](https://pypi.python.org/pypi/mlearn) -- Changelog: [http://jaisenbe58r.github.io/mlearn/CHANGELOG](http://jaisenbe58r.github.io/mlearn/CHANGELOG) -- Contributing: [http://jaisenbe58r.github.io/mlearn/CONTRIBUTING](http://jaisenbe58r.github.io/mlearn/CONTRIBUTING) -- Questions? Check out the [Google Groups mailing list](https://groups.google.com/forum/#!forum/mlearn) +- **Documentation:** [http://jaisenbe58r.github.io/mlearner](http://jaisenbe58r.github.io/mlearner) +- PyPI: [https://pypi.python.org/pypi/mlearner](https://pypi.python.org/pypi/mlearner) +- Changelog: [http://jaisenbe58r.github.io/mlearner/CHANGELOG](http://jaisenbe58r.github.io/mlearner/CHANGELOG) +- Contributing: [http://jaisenbe58r.github.io/mlearner/CONTRIBUTING](http://jaisenbe58r.github.io/mlearner/CONTRIBUTING) +- Questions? Check out the [Google Groups mailing list](https://groups.google.com/forum/#!forum/mlearner)

-## Installing mlearn +## Installing mlearner #### PyPI -To install mlearn, just execute +To install mlearner, just execute ```bash -pip install mlearn +pip install mlearner ``` -Alternatively, you could download the package manually from the Python Package Index [https://pypi.python.org/pypi/mlearn](https://pypi.python.org/pypi/mlearn), unzip it, navigate into the package, and use the command: +Alternatively, you could download the package manually from the Python Package Index [https://pypi.python.org/pypi/mlearner](https://pypi.python.org/pypi/mlearner), unzip it, navigate into the package, and use the command: ```bash python setup.py install ``` #### Conda -If you use conda, to install mlearn just execute +If you use conda, to install mlearner just execute ```bash -conda install -c conda-forge mlearn +conda install -c conda-forge mlearner ``` #### Dev Version -The mlearn version on PyPI may always be one step behind; you can install the latest development version from the GitHub repository by executing +The mlearner version on PyPI may always be one step behind; you can install the latest development version from the GitHub repository by executing ```bash -pip install git+git://github.com/jaisenbe58r/mlearn.git#egg=mlearn +pip install git+git://github.com/jaisenbe58r/mlearner.git#egg=mlearner ``` -Or, you can fork the GitHub repository from https://github.com/jaisenbe58r/MLearn and install mlearn from your local drive via +Or, you can fork the GitHub repository from https://github.com/jaisenbe58r/mlearnerer and install mlearner from your local drive via ```bash python setup.py install diff --git a/docs/ipynb2markdown.py b/docs/ipynb2markdown.py index 68f62df..b47c6ef 100644 --- a/docs/ipynb2markdown.py +++ b/docs/ipynb2markdown.py @@ -1,7 +1,7 @@ # IPython Notebook to Markdown conversion script # # Jaime Sendra Berenguer -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Author: Sebastian Raschka # diff --git a/docs/make_api.py b/docs/make_api.py index 39d53d7..16cd113 100644 --- a/docs/make_api.py +++ b/docs/make_api.py @@ -1,7 +1,7 @@ # IPython Notebook to Markdown conversion script # # Jaime Sendra Berenguer -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Author: Sebastian Raschka # @@ -257,8 +257,8 @@ def generate_api_docs(package, api_dir, clean=False, ignore_packages : iterable or None (default: None) Iterable (list, set, tuple) that contains the names of packages and subpackages to ignore or skip. For instance, if the - images subpackage in mlearn is supposed to be split, provide the - argument `{mlearn.image}`. + images subpackage in mlearner is supposed to be split, provide the + argument `{mlearner.image}`. """ if printlog: @@ -417,10 +417,10 @@ def summarize_methdods_and_functions(api_modules, out_dir, formatter_class=argparse.RawTextHelpFormatter) parser.add_argument('-n', '--package_name', - default='mlearn', + default='mlearner', help='Name of the package') parser.add_argument('-d', '--package_dir', - default='../../mlearn/', + default='../../mlearner/', help="Path to the package's enclosing directory") parser.add_argument('-o1', '--output_module_api', default='../docs/sources/api_modules', @@ -442,11 +442,11 @@ def summarize_methdods_and_functions(api_modules, out_dir, parser.add_argument('--ignore_packages', default='', help='Ignores subpackages listed via this option.' - ' For example, to ignore mlearn.image,' - ' type "mlearn.image".' + ' For example, to ignore mlearner.image,' + ' type "mlearner.image".' ' For multiple subpackages, separate them via,' ' commas. For example,' - ' "mlearn.image,mlearn.plotting".') + ' "mlearner.image,mlearner.plotting".') args = parser.parse_args() @@ -462,6 +462,6 @@ def summarize_methdods_and_functions(api_modules, out_dir, out_dir=args.output_subpackage_api, printlog=not(args.silent), clean=args.clean, - str_above_header=('mlearn' + str_above_header=('mlearner' ' version: %s \n' % ( package.__version__))) diff --git a/docs/make_userguide.py b/docs/make_userguide.py index a33b2ec..76a9002 100644 --- a/docs/make_userguide.py +++ b/docs/make_userguide.py @@ -1,7 +1,7 @@ # IPython Notebook to Markdown conversion script # # Jaime Sendra Berenguer -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Author: Sebastian Raschka # diff --git a/docs/md2pdf.py b/docs/md2pdf.py index cb2d012..8cb331d 100644 --- a/docs/md2pdf.py +++ b/docs/md2pdf.py @@ -1,7 +1,7 @@ # IPython Notebook to Markdown conversion script # # Jaime Sendra Berenguer -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Author: Sebastian Raschka # @@ -11,7 +11,7 @@ import yaml import os import subprocess -from mlearn import __version__ +from mlearner import __version__ yaml_path = "./mkdocs.yml" source_path = os.path.join(os.path.dirname(yaml_path), 'sources') @@ -58,7 +58,7 @@ def gen_title(fname): with open(md_out_path, 'w') as f_out: meta = r"""--- -title: mlearn %s +title: mlearner %s subtitle: Library Documentation author: Sebastian Raschka header-includes: @@ -93,7 +93,7 @@ def gen_title(fname): f_out.write(line) f_out.write('\n\n') -subprocess.check_call(['pandoc', '-N', 'temp.md', '--output=mlearn.pdf', +subprocess.check_call(['pandoc', '-N', 'temp.md', '--output=mlearner.pdf', '--toc', '--normalize', '--smart', '--latex-engine=xelatex', '--toc-depth=4', '--highlight-style=pygments', diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 9b81e70..e134432 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -1,10 +1,10 @@ -site_name: mlearn -site_url: http://jaisenbe58r.github.io/mlearn +site_name: mlearner +site_url: http://jaisenbe58r.github.io/mlearner site_author: Jaime Sendra Berenguer site_description: A library consisting of useful tools and extensions for the day-to-day data science tasks. -repo_url: https://github.com/jaisenbe58r/MLearn +repo_url: https://github.com/jaisenbe58r/mlearnerer repo_name: GitHub edit_uri: docs/sources/user_guide/ @@ -32,7 +32,7 @@ extra_css: - cinder/css/font-awesome-4.0.3.css - cinder/css/highlight.css -# google_analytics: ['UA-38457794-2', 'jaisenbe58r.github.io/mlearn/'] +# google_analytics: ['UA-38457794-2', 'jaisenbe58r.github.io/mlearner/'] nav: - Home: index.md @@ -47,5 +47,5 @@ nav: - How To Contribute: CONTRIBUTING.md - Contributors: contributors.md - License: license.md - - Citing mlearn: cite.md + - Citing mlearner: cite.md - Discuss: discuss.md diff --git a/docs/sources/CHANGELOG.md b/docs/sources/CHANGELOG.md index 0aa28df..75fc23b 100644 --- a/docs/sources/CHANGELOG.md +++ b/docs/sources/CHANGELOG.md @@ -3,7 +3,7 @@ --- The CHANGELOG for the current development version is available at -[https://github.com/jaisenbe58r/MLearn/blob/master/docs/sources/CHANGELOG.md](https://github.com/jaisenbe58r/MLearn/blob/master/docs/sources/CHANGELOG.md). +[https://github.com/jaisenbe58r/mlearnerer/blob/master/docs/sources/CHANGELOG.md](https://github.com/jaisenbe58r/mlearnerer/blob/master/docs/sources/CHANGELOG.md). --- diff --git a/docs/sources/CONTRIBUTING.md b/docs/sources/CONTRIBUTING.md index 1bf22d7..eb0cb5e 100644 --- a/docs/sources/CONTRIBUTING.md +++ b/docs/sources/CONTRIBUTING.md @@ -2,28 +2,28 @@ --- -I would be very happy about any kind of contributions that help to improve and extend the functionality of mlearn. +I would be very happy about any kind of contributions that help to improve and extend the functionality of mlearner. ## Quick Contributor Checklist -This is a quick checklist about the different steps of a typical contribution to mlearn (and +This is a quick checklist about the different steps of a typical contribution to mlearner (and other open source projects). Consider copying this list to a local text file (or the issue tracker) and checking off items as you go. 1. [ ] Open a new "issue" on GitHub to discuss the new feature / bug fix -2. [ ] Fork the mlearn repository from GitHub (if not already done earlier) +2. [ ] Fork the mlearner repository from GitHub (if not already done earlier) 3. [ ] Create and check out a new topic branch (please don't make modifications in the master branch) 4. [ ] Implement the new feature or apply the bug-fix -5. [ ] Add appropriate unit test functions in `mlearn/*/tests` -6. [ ] Run `PYTHONPATH='.' pytest ./mlearn -sv` and make sure that all unit tests pass -7. [ ] Check for style issues by running `flake8 ./mlearn` (you may want to run `pytest` again after you made modifications to the code) +5. [ ] Add appropriate unit test functions in `mlearner/*/tests` +6. [ ] Run `PYTHONPATH='.' pytest ./mlearner -sv` and make sure that all unit tests pass +7. [ ] Check for style issues by running `flake8 ./mlearner` (you may want to run `pytest` again after you made modifications to the code) 8. [ ] Add a note about the modification/contribution to the `./docs/sources/changelog.md` file -9. [ ] Modify documentation in the appropriate location under `mlearn/docs/sources/` +9. [ ] Modify documentation in the appropriate location under `mlearner/docs/sources/` 10. [ ] Push the topic branch to the server and create a pull request -11. [ ] Check the Travis-CI build passed at [https://travis-ci.org/jaisenbe58r/mlearn](https://travis-ci.org/jaisenbe58r/mlearn) -12. [ ] Check/improve the unit test coverage at [https://coveralls.io/github/jaisenbe58r/mlearn](https://coveralls.io/github/jaisenbe58r/mlearn) -13. [ ] Check/improve the code health at [https://landscape.io/github/jaisenbe58r/mlearn](https://landscape.io/github/jaisenbe58r/mlearn) +11. [ ] Check the Travis-CI build passed at [https://travis-ci.org/jaisenbe58r/mlearner](https://travis-ci.org/jaisenbe58r/mlearner) +12. [ ] Check/improve the unit test coverage at [https://coveralls.io/github/jaisenbe58r/mlearner](https://coveralls.io/github/jaisenbe58r/mlearner) +13. [ ] Check/improve the code health at [https://landscape.io/github/jaisenbe58r/mlearner](https://landscape.io/github/jaisenbe58r/mlearner)
@@ -37,16 +37,16 @@ and checking off items as you go. ![](./img/contributing/new_issue.png) -- Fork the `mlearn` repository from the GitHub web interface. +- Fork the `mlearner` repository from the GitHub web interface. ![](./img/contributing/fork.png) -- Clone the `mlearn` repository to your local machine by executing - ```git clone https://github.com//mlearn.git``` +- Clone the `mlearner` repository to your local machine by executing + ```git clone https://github.com//mlearner.git``` ## Syncing an Existing Fork -If you already forked mlearn earlier, you can bring you "Fork" up to date +If you already forked mlearner earlier, you can bring you "Fork" up to date with the master branch as follows: #### 1. Configuring a remote that points to the upstream repository on GitHub @@ -60,13 +60,13 @@ $ git remote -v If you see something like ```bash -origin https://github.com//mlearn.git (fetch) -origin https://github.com//mlearn.git (push) +origin https://github.com//mlearner.git (fetch) +origin https://github.com//mlearner.git (push) ``` you need to specify a new remote *upstream* repository via ```bash -$ git remote add upstream https://github.com/jaisenbe58r/MLearn.git +$ git remote add upstream https://github.com/jaisenbe58r/mlearnerer.git ``` Now, verify the new upstream repository you've specified for your fork by executing @@ -78,10 +78,10 @@ $ git remote -v You should see following output if everything is configured correctly: ```bash -origin https://github.com//mlearn.git (fetch) -origin https://github.com//mlearn.git (push) -upstream https://github.com/jaisenbe58r/MLearn.git (fetch) -upstream https://github.com/jaisenbe58r/MLearn.git (push) +origin https://github.com//mlearner.git (fetch) +origin https://github.com//mlearner.git (push) +upstream https://github.com/jaisenbe58r/mlearnerer.git (fetch) +upstream https://github.com/jaisenbe58r/mlearnerer.git (push) ``` #### 2. Syncing your Fork @@ -99,11 +99,11 @@ remote: Counting objects: xx, done. remote: Compressing objects: 100% (xx/xx), done. remote: Total xx (delta xx), reused xx (delta x) Unpacking objects: 100% (xx/xx), done. -From https://github.com/jaisenbe58r/MLearn +From https://github.com/jaisenbe58r/mlearnerer * [new branch] master -> upstream/master ``` -This means that the commits to the `jaisenbe58r/mlearn` master branch are now +This means that the commits to the `jaisenbe58r/mlearner` master branch are now stored in the local branch `upstream/master`. If you are not already on your local project's master branch, execute @@ -137,7 +137,7 @@ Listed below are the 9 typical steps of a contribution. #### 1. Discussing the Feature or Modification Before you start coding, please discuss the new feature, bugfix, or other modification to the project -on the project's [issue tracker](https://github.com/jaisenbe58r/MLearn/issues). Before you open a "new issue," please +on the project's [issue tracker](https://github.com/jaisenbe58r/mlearnerer/issues). Before you open a "new issue," please do a quick search to see if a similar issue has been submitted already. #### 2. Creating a new feature branch @@ -163,14 +163,14 @@ Now it's time to modify existing code or to contribute new code to the project. Add the respective unit tests and check if they pass: ```bash -$ PYTHONPATH='.' pytest ./mlearn ---with-coverage +$ PYTHONPATH='.' pytest ./mlearner ---with-coverage ``` #### 5. Documenting changes -Please add an entry to the `mlearn/docs/sources/changelog.md` file. -If it is a new feature, it would also be nice if you could update the documentation in appropriate location in `mlearn/sources`. +Please add an entry to the `mlearner/docs/sources/changelog.md` file. +If it is a new feature, it would also be nice if you could update the documentation in appropriate location in `mlearner/sources`. #### 6. Committing changes @@ -267,26 +267,26 @@ Go to your GitHub repository online, select the new feature branch, and submit a ## Building the documentation -The documentation is built via [MkDocs](http://www.mkdocs.org); to ensure that the documentation is rendered correctly, you can view the documentation locally by executing `mkdocs serve` from the `mlearn/docs` directory. +The documentation is built via [MkDocs](http://www.mkdocs.org); to ensure that the documentation is rendered correctly, you can view the documentation locally by executing `mkdocs serve` from the `mlearner/docs` directory. For example, ```bash -~/github/mlearn/docs$ mkdocs serve +~/github/mlearner/docs$ mkdocs serve ``` ### 1. Building the API documentation -To build the API documentation, navigate to `mlearn/docs` and execute the `make_api.py` file from this directory via +To build the API documentation, navigate to `mlearner/docs` and execute the `make_api.py` file from this directory via ```python -~/github/mlearn/docs$ python make_api.py +~/github/mlearner/docs$ python make_api.py ``` This should place the API documentation into the correct directories into the two directories: -- `mlearn/docs/sources/api_modules` -- `mlearn/docs/sources/api_subpackes` +- `mlearner/docs/sources/api_modules` +- `mlearner/docs/sources/api_subpackes` ### 2. Editing the User Guide @@ -297,12 +297,12 @@ The documents containing code examples for the "User Guide" are generated from I 3. Convert the notebook to markdown using the `ipynb2markdown.py` converter ```python -~/github/mlearn/docs$ python ipynb2markdown.py --ipynb_path ./sources/user_guide/subpackage/notebookname.ipynb +~/github/mlearner/docs$ python ipynb2markdown.py --ipynb_path ./sources/user_guide/subpackage/notebookname.ipynb ``` **Note** -If you are adding a new document, please also include it in the pages section in the `mlearn/docs/mkdocs.yml` file. +If you are adding a new document, please also include it in the pages section in the `mlearner/docs/mkdocs.yml` file. @@ -311,24 +311,24 @@ If you are adding a new document, please also include it in the pages section in First, please check the documenation via localhost (http://127.0.0.1:8000/): ```bash -~/github/mlearn/docs$ mkdocs serve +~/github/mlearner/docs$ mkdocs serve ``` -Next, build the static HTML files of the mlearn documentation via +Next, build the static HTML files of the mlearner documentation via ```bash -~/github/mlearn/docs$ mkdocs build --clean +~/github/mlearner/docs$ mkdocs build --clean ``` To deploy the documentation, execute ```bash -~/github/mlearn/docs$ mkdocs gh-deploy --clean +~/github/mlearner/docs$ mkdocs gh-deploy --clean ``` ### 4. Generate a PDF of the documentation -To generate a PDF version of the documentation, simply `cd` into the `mlearn/docs` directory and execute: +To generate a PDF version of the documentation, simply `cd` into the `mlearner/docs` directory and execute: ```bash python md2pdf.py @@ -341,13 +341,13 @@ python md2pdf.py Assuming we are using `conda`, create a new python environment via ```bash -$ conda create -n 'mlearn-testing' python=3 numpy scipy pandas +$ conda create -n 'mlearner-testing' python=3 numpy scipy pandas ``` Next, activate the environment by executing ```bash -$ source activate mlearn-testing +$ source activate mlearner-testing ``` ### 2. Installing the package from local files @@ -364,7 +364,7 @@ the `--record files.txt` flag will create a `files.txt` file listing the locatio Try to import the package to see if it works, for example, by executing ```bash -$ python -c 'import mlearn; print(mlearn.__file__)' +$ python -c 'import mlearner; print(mlearner.__file__)' ``` If everything seems to be fine, remove the installation via @@ -376,13 +376,13 @@ $ cat files.txt | xargs rm -rf ; rm files.txt Next, test if `pip` is able to install the packages. First, navigate to a different directory, and from there, install the package: ```bash -$ pip install mlearn +$ pip install mlearner ``` and uninstall it again ```bash -$ pip uninstall mlearn +$ pip uninstall mlearner ``` ### 3. Deploying the package @@ -396,13 +396,13 @@ $ python setup.py sdist bdist_wheel upload -r https://testpypi.python.org/pypi Test if it can be installed from there by executing ```bash -$ pip install -i https://testpypi.python.org/pypi mlearn +$ pip install -i https://testpypi.python.org/pypi mlearner ``` and uninstall it ```bash -$ pip uninstall mlearn +$ pip uninstall mlearner ``` After this dry-run succeeded, repeat this process using the "real" PyPI: @@ -416,9 +416,9 @@ $ python setup.py sdist bdist_wheel upload Finally, to cleanup our local drive, remove the virtual testing environment via ```bash -$ conda remove --name 'mlearn-testing' --all +$ conda remove --name 'mlearner-testing' --all ``` ### 5. Updating the conda-forge recipe -Once a new version of mlearn has been uploaded to PyPI, update the conda-forge build recipe at https://github.com/conda-forge/mlearn-feedstock by changing the version number in the `recipe/meta.yaml` file appropriately. +Once a new version of mlearner has been uploaded to PyPI, update the conda-forge build recipe at https://github.com/conda-forge/mlearner-feedstock by changing the version number in the `recipe/meta.yaml` file appropriately. diff --git a/docs/sources/cite.md b/docs/sources/cite.md index ef86d6d..36ec0d7 100644 --- a/docs/sources/cite.md +++ b/docs/sources/cite.md @@ -1,3 +1,3 @@ -# Citing mlearn +# Citing mlearner -If you use mlearn as part of your workflow in a scientific publication, please consider citing the mlearn repository with the following DOI: +If you use mlearner as part of your workflow in a scientific publication, please consider citing the mlearner repository with the following DOI: diff --git a/docs/sources/contributors.md b/docs/sources/contributors.md index bb197a9..51e1e06 100644 --- a/docs/sources/contributors.md +++ b/docs/sources/contributors.md @@ -1,3 +1,3 @@ # Contributors -For the current list of contributors to mlearn, please see the GitHub contributor page at [https://github.com/jaisenbe58r/MLearn/graphs/contributors](https://github.com/jaisenbe58r/MLearn/graphs/contributors ). +For the current list of contributors to mlearner, please see the GitHub contributor page at [https://github.com/jaisenbe58r/mlearnerer/graphs/contributors](https://github.com/jaisenbe58r/mlearnerer/graphs/contributors ). diff --git a/docs/sources/discuss.md b/docs/sources/discuss.md index 35f4ac5..91c7994 100644 --- a/docs/sources/discuss.md +++ b/docs/sources/discuss.md @@ -2,5 +2,5 @@ [![Discuss](https://img.shields.io/badge/discuss-DISCORD-PURPLE.svg)](https://discord.gg/yHCCa2) -Any questions or comments about mlearn? Join the mlearn mailing list on Google Groups! +Any questions or comments about mlearner? Join the mlearner mailing list on Google Groups! diff --git a/docs/sources/index.md b/docs/sources/index.md index be07ecc..b43b82c 100644 --- a/docs/sources/index.md +++ b/docs/sources/index.md @@ -1,26 +1,26 @@ ![](./img/logo.png) -### Welcome to mlearn's documentation! +### Welcome to mlearner's documentation! -**mlearn (machine learning extensions) is a Python library of useful tools for the day-to-day data science tasks.** +**mlearner (machine learning extensions) is a Python library of useful tools for the day-to-day data science tasks.** [![DOI](http://joss.theoj.org/papers/10.21105/joss.00638/status.svg)](https://doi.org/10.21105/joss.00638) -[![PyPI version](https://badge.fury.io/py/mlearn.svg)](http://badge.fury.io/py/mlearn) +[![PyPI version](https://badge.fury.io/py/mlearner.svg)](http://badge.fury.io/py/mlearner) ![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg) ![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg) [![License](https://img.shields.io/badge/license-BSD-blue.svg)](./license) -[![Discuss](https://img.shields.io/badge/discuss-google_group-blue.svg)](https://groups.google.com/forum/#!forum/mlearn) +[![Discuss](https://img.shields.io/badge/discuss-google_group-blue.svg)](https://groups.google.com/forum/#!forum/mlearner)
## Links -- **Documentation:** [http://jaisenbe58r.github.io/mlearn](http://jaisenbe58r.github.io/mlearn) -- Source code repository: [https://github.com/jaisenbe58r/MLearn](https://github.com/jaisenbe58r/MLearn) -- PyPI: [https://pypi.python.org/pypi/mlearn](https://pypi.python.org/pypi/mlearn) -- Questions? Check out the [Google Groups mailing list](https://groups.google.com/forum/#!forum/mlearn) +- **Documentation:** [http://jaisenbe58r.github.io/mlearner](http://jaisenbe58r.github.io/mlearner) +- Source code repository: [https://github.com/jaisenbe58r/mlearnerer](https://github.com/jaisenbe58r/mlearnerer) +- PyPI: [https://pypi.python.org/pypi/mlearner](https://pypi.python.org/pypi/mlearner) +- Questions? Check out the [Google Groups mailing list](https://groups.google.com/forum/#!forum/mlearner)
@@ -35,9 +35,9 @@ import itertools from sklearn.linear_model import LogisticRegression from sklearn.svm import SVC from sklearn.ensemble import RandomForestClassifier -from mlearn.classifier import EnsembleVoteClassifier -from mlearn.data import iris_data -from mlearn.plotting import plot_decision_regions +from mlearner.classifier import EnsembleVoteClassifier +from mlearner.data import iris_data +from mlearner.plotting import plot_decision_regions # Initializing Classifiers clf1 = LogisticRegression(random_state=0) @@ -77,14 +77,14 @@ plt.show() ![](./img/ensemble_decision_regions_2d.png) -If you use mlearn as part of your workflow in a scientific publication, please consider citing the mlearn repository with the following DOI: +If you use mlearner as part of your workflow in a scientific publication, please consider citing the mlearner repository with the following DOI: [![DOI](http://joss.theoj.org/papers/10.21105/joss.00638/status.svg)](https://doi.org/10.21105/joss.00638) ``` -@article{raschkas_2018_mlearn, +@article{raschkas_2018_mlearner, author = {Sebastian Raschka}, - title = {mlearn: Providing machine learning and data science + title = {mlearner: Providing machine learning and data science utilities and extensions to Python’s scientific computing stack}, journal = {The Journal of Open Source Software}, @@ -101,12 +101,12 @@ If you use mlearn as part of your workflow in a scientific publication, please c ## License -- This project is released under a permissive new BSD open source license ([LICENSE-BSD3.txt](https://github.com/jaisenbe58r/MLearn/blob/master/LICENSE-BSD3.txt)) and commercially usable. There is no warranty; not even for merchantability or fitness for a particular purpose. +- This project is released under a permissive new BSD open source license ([LICENSE-BSD3.txt](https://github.com/jaisenbe58r/mlearnerer/blob/master/LICENSE-BSD3.txt)) and commercially usable. There is no warranty; not even for merchantability or fitness for a particular purpose. - In addition, you may use, copy, modify and redistribute all artistic creative works (figures and images) included in this distribution under the directory -according to the terms and conditions of the Creative Commons Attribution 4.0 International License. See the file [LICENSE-CC-BY.txt](https://github.com/jaisenbe58r/MLearn/blob/master/LICENSE-CC-BY.txt) for details. (Computer-generated graphics such as the plots produced by matplotlib fall under the BSD license mentioned above). +according to the terms and conditions of the Creative Commons Attribution 4.0 International License. See the file [LICENSE-CC-BY.txt](https://github.com/jaisenbe58r/mlearnerer/blob/master/LICENSE-CC-BY.txt) for details. (Computer-generated graphics such as the plots produced by matplotlib fall under the BSD license mentioned above). ## Contact -I received a lot of feedback and questions about mlearn recently, and I thought that it would be worthwhile to set up a public communication channel. Before you write an email with a question about mlearn, please consider posting it here since it can also be useful to others! Please join the [Google Groups Mailing List](https://groups.google.com/forum/#!forum/mlearn)! +I received a lot of feedback and questions about mlearner recently, and I thought that it would be worthwhile to set up a public communication channel. Before you write an email with a question about mlearner, please consider posting it here since it can also be useful to others! Please join the [Google Groups Mailing List](https://groups.google.com/forum/#!forum/mlearner)! -If Google Groups is not for you, please feel free to write me an [email](mailto:mail@sebastianraschka.com) or consider filing an issue on [GitHub's issue tracker](https://github.com/jaisenbe58r/MLearn/issues) for new feature requests or bug reports. In addition, I setup a [Gitter channel](https://gitter.im/jaisenbe58r/mlearn?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) for live discussions. +If Google Groups is not for you, please feel free to write me an [email](mailto:mail@sebastianraschka.com) or consider filing an issue on [GitHub's issue tracker](https://github.com/jaisenbe58r/mlearnerer/issues) for new feature requests or bug reports. In addition, I setup a [Gitter channel](https://gitter.im/jaisenbe58r/mlearner?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) for live discussions. diff --git a/docs/sources/installation.md b/docs/sources/installation.md index af4bea3..2e0e723 100644 --- a/docs/sources/installation.md +++ b/docs/sources/installation.md @@ -1,16 +1,16 @@ -# Installing mlearn +# Installing mlearner --- ### PyPI -To install mlearn, just execute +To install mlearner, just execute ```bash -pip install mlearn +pip install mlearner ``` -Alternatively, you download the package manually from the Python Package Index [https://pypi.python.org/pypi/mlearn](https://pypi.python.org/pypi/mlearn), unzip it, navigate into the package, and use the command: +Alternatively, you download the package manually from the Python Package Index [https://pypi.python.org/pypi/mlearner](https://pypi.python.org/pypi/mlearner), unzip it, navigate into the package, and use the command: ```bash python setup.py install @@ -18,47 +18,47 @@ python setup.py install ##### Upgrading via `pip` -To upgrade an existing version of mlearn from PyPI, execute +To upgrade an existing version of mlearner from PyPI, execute ```bash -pip install mlearn --upgrade --no-deps +pip install mlearner --upgrade --no-deps ``` Please note that the dependencies (NumPy and SciPy) will also be upgraded if you omit the `--no-deps` flag; use the `--no-deps` ("no dependencies") flag if you don't want this. -##### Installing mlearn from the source distribution +##### Installing mlearner from the source distribution -In rare cases, users reported problems on certain systems with the default `pip` installation command, which installs mlearn from the binary distribution ("wheels") on PyPI. If you should encounter similar problems, you could try to install mlearn from the source distribution instead via +In rare cases, users reported problems on certain systems with the default `pip` installation command, which installs mlearner from the binary distribution ("wheels") on PyPI. If you should encounter similar problems, you could try to install mlearner from the source distribution instead via ```bash -pip install --no-binary :all: mlearn +pip install --no-binary :all: mlearner ``` -Also, I would appreciate it if you could report any issues that occur when using `pip install mlearn` in hope that we can fix these in future releases. +Also, I would appreciate it if you could report any issues that occur when using `pip install mlearner` in hope that we can fix these in future releases. ### Conda -The mlearn package is also [available through conda forge](https://github.com/conda-forge/mlearn-feedstock). +The mlearner package is also [available through conda forge](https://github.com/conda-forge/mlearner-feedstock). -To install mlearn using conda, use the following command: +To install mlearner using conda, use the following command: - conda install mlearn --channel conda-forge + conda install mlearner --channel conda-forge or simply - conda install mlearn + conda install mlearner if you added conda-forge to your channels (`conda config --add channels conda-forge`). ### Dev Version -The mlearn version on PyPI may always one step behind; you can install the latest development version from the GitHub repository by executing +The mlearner version on PyPI may always one step behind; you can install the latest development version from the GitHub repository by executing ```bash -pip install git+git://github.com/jaisenbe58r/mlearn.git +pip install git+git://github.com/jaisenbe58r/mlearner.git ``` -Or, you can fork the GitHub repository from https://github.com/jaisenbe58r/MLearn and install mlearn from your local drive via +Or, you can fork the GitHub repository from https://github.com/jaisenbe58r/mlearnerer and install mlearner from your local drive via ```bash python setup.py install diff --git a/mlearner/__init__.py b/mlearner/__init__.py index a2db3a7..b218cf9 100644 --- a/mlearner/__init__.py +++ b/mlearner/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/_base/__init__.py b/mlearner/_base/__init__.py index afec001..a7511f2 100644 --- a/mlearner/_base/__init__.py +++ b/mlearner/_base/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/_base/_base_model.py b/mlearner/_base/_base_model.py index c6b8eb1..ea7cef9 100644 --- a/mlearner/_base/_base_model.py +++ b/mlearner/_base/_base_model.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Base Clusteer (Clutering Parent Class) # Author: Sebastian Raschka diff --git a/mlearner/_base/_classifier.py b/mlearner/_base/_classifier.py index 1e8e598..83b3e14 100644 --- a/mlearner/_base/_classifier.py +++ b/mlearner/_base/_classifier.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Base Clusteer (Clutering Parent Class) # Author: Sebastian Raschka diff --git a/mlearner/_base/_cluster.py b/mlearner/_base/_cluster.py index 078966f..4494361 100644 --- a/mlearner/_base/_cluster.py +++ b/mlearner/_base/_cluster.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Base Clusteer (Clutering Parent Class) # Author: Sebastian Raschka diff --git a/mlearner/_base/_iterative_model.py b/mlearner/_base/_iterative_model.py index 96aba2a..6b8e36b 100644 --- a/mlearner/_base/_iterative_model.py +++ b/mlearner/_base/_iterative_model.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Base Clusteer (Clutering Parent Class) # Author: Sebastian Raschka diff --git a/mlearner/_base/_multiclass.py b/mlearner/_base/_multiclass.py index deb8f5f..927e579 100644 --- a/mlearner/_base/_multiclass.py +++ b/mlearner/_base/_multiclass.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Base Clusteer (Clutering Parent Class) # Author: Sebastian Raschka diff --git a/mlearner/_base/_multilayer.py b/mlearner/_base/_multilayer.py index 283d004..06718c2 100644 --- a/mlearner/_base/_multilayer.py +++ b/mlearner/_base/_multilayer.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Base Clusteer (Clutering Parent Class) # Author: Sebastian Raschka diff --git a/mlearner/_base/_regressor.py b/mlearner/_base/_regressor.py index 8ec2af9..7329e94 100644 --- a/mlearner/_base/_regressor.py +++ b/mlearner/_base/_regressor.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Base Clusteer (Clutering Parent Class) # Author: Sebastian Raschka diff --git a/mlearner/_base/tests/test_base_model.py b/mlearner/_base/tests/test_base_model.py index 0dc66ad..b2cf13b 100644 --- a/mlearner/_base/tests/test_base_model.py +++ b/mlearner/_base/tests/test_base_model.py @@ -1,12 +1,12 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn._base import _BaseModel +from mlearner._base import _BaseModel import numpy as np -from mlearn.utils import assert_raises +from mlearner.utils import assert_raises class BlankModel(_BaseModel): diff --git a/mlearner/_base/tests/test_classifier.py b/mlearner/_base/tests/test_classifier.py index d02f793..d05fc2c 100644 --- a/mlearner/_base/tests/test_classifier.py +++ b/mlearner/_base/tests/test_classifier.py @@ -1,11 +1,11 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn._base import _BaseModel -from mlearn._base import _Classifier +from mlearner._base import _BaseModel +from mlearner._base import _Classifier import numpy as np import pytest diff --git a/mlearner/_base/tests/test_cluster.py b/mlearner/_base/tests/test_cluster.py index 85ea9f8..d75dc12 100644 --- a/mlearner/_base/tests/test_cluster.py +++ b/mlearner/_base/tests/test_cluster.py @@ -1,11 +1,11 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn._base import _BaseModel -from mlearn._base import _Classifier +from mlearner._base import _BaseModel +from mlearner._base import _Classifier import numpy as np import pytest diff --git a/mlearner/_base/tests/test_iterative_model.py b/mlearner/_base/tests/test_iterative_model.py index 569e788..c3698b1 100644 --- a/mlearner/_base/tests/test_iterative_model.py +++ b/mlearner/_base/tests/test_iterative_model.py @@ -1,10 +1,10 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn._base import _IterativeModel +from mlearner._base import _IterativeModel import numpy as np diff --git a/mlearner/_base/tests/test_multiclass.py b/mlearner/_base/tests/test_multiclass.py index 732f3c0..9da9a5f 100644 --- a/mlearner/_base/tests/test_multiclass.py +++ b/mlearner/_base/tests/test_multiclass.py @@ -1,10 +1,10 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn._base import _MultiClass +from mlearner._base import _MultiClass import numpy as np diff --git a/mlearner/_base/tests/test_multilayer.py b/mlearner/_base/tests/test_multilayer.py index 26d4008..5ee02d4 100644 --- a/mlearner/_base/tests/test_multilayer.py +++ b/mlearner/_base/tests/test_multilayer.py @@ -1,10 +1,10 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn._base import _MultiLayer +from mlearner._base import _MultiLayer class BlankClassifier(_MultiLayer): diff --git a/mlearner/_base/tests/test_regressor.py b/mlearner/_base/tests/test_regressor.py index 1b67472..f5084d8 100644 --- a/mlearner/_base/tests/test_regressor.py +++ b/mlearner/_base/tests/test_regressor.py @@ -1,13 +1,13 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn._base import _BaseModel -from mlearn._base import _Regressor +from mlearner._base import _BaseModel +from mlearner._base import _Regressor import numpy as np -from mlearn.utils import assert_raises +from mlearner.utils import assert_raises class BlankRegressor(_BaseModel, _Regressor): diff --git a/mlearner/classifier/__init__.py b/mlearner/classifier/__init__.py index 095d8f3..f6e59f3 100644 --- a/mlearner/classifier/__init__.py +++ b/mlearner/classifier/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/classifier/adaline.py b/mlearner/classifier/adaline.py index 4253e87..cde84a1 100644 --- a/mlearner/classifier/adaline.py +++ b/mlearner/classifier/adaline.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Implementation of the ADAptive LInear NEuron classification algorithm. # Author: Sebastian Raschka @@ -55,7 +55,7 @@ class Adaline(_BaseModel, _IterativeModel, _Classifier): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/classifier/Adaline/ + http://rasbt.github.io/mlearner/user_guide/classifier/Adaline/ """ def __init__(self, eta=0.01, epochs=50, diff --git a/mlearner/classifier/ensemble_vote.py b/mlearner/classifier/ensemble_vote.py index 0e8c5fe..ccb0d87 100644 --- a/mlearner/classifier/ensemble_vote.py +++ b/mlearner/classifier/ensemble_vote.py @@ -1,7 +1,7 @@ # Soft Voting/Majority Rule classifier # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Implementation of an meta-classification algorithm for majority voting. # Author: Sebastian Raschka @@ -66,7 +66,7 @@ class EnsembleVoteClassifier(BaseEstimator, ClassifierMixin, TransformerMixin): For instance, if any form of cross-validation is performed this would require the re-fitting classifiers to training folds, which would raise a NotFitterError if fit_base_estimators=False. - (New in mlearn v0.6.) + (New in mlearner v0.6.) Attributes ---------- @@ -83,7 +83,7 @@ class EnsembleVoteClassifier(BaseEstimator, ClassifierMixin, TransformerMixin): >>> from sklearn.linear_model import LogisticRegression >>> from sklearn.naive_bayes import GaussianNB >>> from sklearn.ensemble import RandomForestClassifier - >>> from mlearn.sklearn import EnsembleVoteClassifier + >>> from mlearner.sklearn import EnsembleVoteClassifier >>> clf1 = LogisticRegression(random_seed=1) >>> clf2 = RandomForestClassifier(random_seed=1) >>> clf3 = GaussianNB() @@ -106,7 +106,7 @@ class EnsembleVoteClassifier(BaseEstimator, ClassifierMixin, TransformerMixin): >>> For more usage examples, please see - http://rasbt.github.io/mlearn/user_guide/classifier/EnsembleVoteClassifier/ + http://rasbt.github.io/mlearner/user_guide/classifier/EnsembleVoteClassifier/ """ def __init__(self, clfs, voting='hard', diff --git a/mlearner/classifier/logistic_regression.py b/mlearner/classifier/logistic_regression.py index 261de0e..2ed3760 100644 --- a/mlearner/classifier/logistic_regression.py +++ b/mlearner/classifier/logistic_regression.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Implementation of the logistic regression algorithm for classification. # Author: Sebastian Raschka @@ -58,7 +58,7 @@ class LogisticRegression(_BaseModel, _IterativeModel, _Classifier): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/classifier/LogisticRegression/ + http://rasbt.github.io/mlearner/user_guide/classifier/LogisticRegression/ """ def __init__(self, eta=0.01, epochs=50, diff --git a/mlearner/classifier/multilayerperceptron.py b/mlearner/classifier/multilayerperceptron.py index b62da3e..94435a5 100644 --- a/mlearner/classifier/multilayerperceptron.py +++ b/mlearner/classifier/multilayerperceptron.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Implementation of a Multi-layer Perceptron in Tensorflow # Author: Sebastian Raschka @@ -76,7 +76,7 @@ class MultiLayerPerceptron(_BaseModel, _IterativeModel, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/classifier/MultiLayerPerceptron/ + http://rasbt.github.io/mlearner/user_guide/classifier/MultiLayerPerceptron/ """ diff --git a/mlearner/classifier/perceptron.py b/mlearner/classifier/perceptron.py index 7a1ccc6..cd41b87 100644 --- a/mlearner/classifier/perceptron.py +++ b/mlearner/classifier/perceptron.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Implementation of Rosenblatt's perceptron algorithm for classification. # Author: Sebastian Raschka @@ -48,7 +48,7 @@ class Perceptron(_BaseModel, _IterativeModel, _Classifier): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/classifier/Perceptron/ + http://rasbt.github.io/mlearner/user_guide/classifier/Perceptron/ """ def __init__(self, eta=0.1, epochs=50, random_seed=None, diff --git a/mlearner/classifier/softmax_regression.py b/mlearner/classifier/softmax_regression.py index 982ed33..771c00c 100644 --- a/mlearner/classifier/softmax_regression.py +++ b/mlearner/classifier/softmax_regression.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Implementation of the mulitnomial logistic regression algorithm for # classification. @@ -62,7 +62,7 @@ class SoftmaxRegression(_BaseModel, _IterativeModel, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/classifier/SoftmaxRegression/ + http://rasbt.github.io/mlearner/user_guide/classifier/SoftmaxRegression/ """ def __init__(self, eta=0.01, epochs=50, diff --git a/mlearner/classifier/stacking_classification.py b/mlearner/classifier/stacking_classification.py index e63643d..7525da1 100644 --- a/mlearner/classifier/stacking_classification.py +++ b/mlearner/classifier/stacking_classification.py @@ -1,7 +1,7 @@ # Stacking classifier # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # An ensemble-learning meta-classifier for stacking # Author: Sebastian Raschka @@ -88,7 +88,7 @@ class StackingClassifier(_BaseXComposition, _BaseStackingClassifier, For instance, if any form of cross-validation is performed this would require the re-fitting classifiers to training folds, which would raise a NotFitterError if fit_base_estimators=False. - (New in mlearn v0.6.) + (New in mlearner v0.6.) Attributes ---------- @@ -104,7 +104,7 @@ class StackingClassifier(_BaseXComposition, _BaseStackingClassifier, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/classifier/StackingClassifier/ + http://rasbt.github.io/mlearner/user_guide/classifier/StackingClassifier/ """ def __init__(self, classifiers, meta_classifier, diff --git a/mlearner/classifier/stacking_cv_classification.py b/mlearner/classifier/stacking_cv_classification.py index e0ebd1c..934979c 100644 --- a/mlearner/classifier/stacking_cv_classification.py +++ b/mlearner/classifier/stacking_cv_classification.py @@ -1,7 +1,7 @@ # Stacking CV classifier # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # An ensemble-learning meta-classifier for stacking # Authors: Reiichiro Nakano @@ -28,7 +28,7 @@ class StackingCVClassifier(_BaseXComposition, _BaseStackingClassifier, """A 'Stacking Cross-Validation' classifier for scikit-learn estimators. - New in mlearn v0.4.3 + New in mlearner v0.4.3 Parameters ---------- @@ -137,7 +137,7 @@ class StackingCVClassifier(_BaseXComposition, _BaseStackingClassifier, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/classifier/StackingCVClassifier/ + http://rasbt.github.io/mlearner/user_guide/classifier/StackingCVClassifier/ """ diff --git a/mlearner/classifier/tests/test_adaline.py b/mlearner/classifier/tests/test_adaline.py index d89896c..50ffc00 100644 --- a/mlearner/classifier/tests/test_adaline.py +++ b/mlearner/classifier/tests/test_adaline.py @@ -1,14 +1,14 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import sys import numpy as np -from mlearn.classifier import Adaline -from mlearn.data import iris_data -from mlearn.utils import assert_raises +from mlearner.classifier import Adaline +from mlearner.data import iris_data +from mlearner.utils import assert_raises from sklearn.base import clone diff --git a/mlearner/classifier/tests/test_ensemble_vote_classifier.py b/mlearner/classifier/tests/test_ensemble_vote_classifier.py index 004fe7f..cc95837 100644 --- a/mlearner/classifier/tests/test_ensemble_vote_classifier.py +++ b/mlearner/classifier/tests/test_ensemble_vote_classifier.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause @@ -16,9 +16,9 @@ from sklearn.naive_bayes import GaussianNB from sklearn.neighbors import KNeighborsClassifier -from mlearn.classifier import EnsembleVoteClassifier -from mlearn.data import iris_data -from mlearn.utils import assert_raises +from mlearner.classifier import EnsembleVoteClassifier +from mlearner.data import iris_data +from mlearner.utils import assert_raises X, y = iris_data() X = X[:, 1:3] diff --git a/mlearner/classifier/tests/test_logistic_regression.py b/mlearner/classifier/tests/test_logistic_regression.py index c5b82eb..45f19ae 100644 --- a/mlearner/classifier/tests/test_logistic_regression.py +++ b/mlearner/classifier/tests/test_logistic_regression.py @@ -1,14 +1,14 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import sys import numpy as np -from mlearn.classifier import LogisticRegression -from mlearn.data import iris_data -from mlearn.utils import assert_raises +from mlearner.classifier import LogisticRegression +from mlearner.data import iris_data +from mlearner.utils import assert_raises from sklearn.base import clone diff --git a/mlearner/classifier/tests/test_multilayerperceptron.py b/mlearner/classifier/tests/test_multilayerperceptron.py index 998ba04..4024e09 100644 --- a/mlearner/classifier/tests/test_multilayerperceptron.py +++ b/mlearner/classifier/tests/test_multilayerperceptron.py @@ -1,13 +1,13 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.classifier import MultiLayerPerceptron as MLP -from mlearn.data import iris_data +from mlearner.classifier import MultiLayerPerceptron as MLP +from mlearner.data import iris_data import numpy as np -from mlearn.utils import assert_raises +from mlearner.utils import assert_raises from sklearn.base import clone diff --git a/mlearner/classifier/tests/test_perceptron.py b/mlearner/classifier/tests/test_perceptron.py index c383a3f..fa0ac2f 100644 --- a/mlearner/classifier/tests/test_perceptron.py +++ b/mlearner/classifier/tests/test_perceptron.py @@ -1,14 +1,14 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import sys import numpy as np -from mlearn.classifier import Perceptron -from mlearn.data import iris_data -from mlearn.utils import assert_raises +from mlearner.classifier import Perceptron +from mlearner.data import iris_data +from mlearner.utils import assert_raises from sklearn.base import clone # Iris Data diff --git a/mlearner/classifier/tests/test_softmax_regression.py b/mlearner/classifier/tests/test_softmax_regression.py index 65067b0..a792b04 100644 --- a/mlearner/classifier/tests/test_softmax_regression.py +++ b/mlearner/classifier/tests/test_softmax_regression.py @@ -1,13 +1,13 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import numpy as np -from mlearn.classifier import SoftmaxRegression -from mlearn.data import iris_data -from mlearn.utils import assert_raises +from mlearner.classifier import SoftmaxRegression +from mlearner.data import iris_data +from mlearner.utils import assert_raises from sklearn.base import clone diff --git a/mlearner/classifier/tests/test_stacking_classifier.py b/mlearner/classifier/tests/test_stacking_classifier.py index c4747c8..3e8d6a6 100644 --- a/mlearner/classifier/tests/test_stacking_classifier.py +++ b/mlearner/classifier/tests/test_stacking_classifier.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause @@ -23,10 +23,10 @@ from sklearn.neighbors import KNeighborsClassifier from sklearn.svm import SVC -from mlearn.classifier import StackingClassifier -from mlearn.data import iris_data -from mlearn.externals.estimator_checks import NotFittedError -from mlearn.utils import assert_raises +from mlearner.classifier import StackingClassifier +from mlearner.data import iris_data +from mlearner.externals.estimator_checks import NotFittedError +from mlearner.utils import assert_raises X, y = iris_data() X = X[:, 1:3] diff --git a/mlearner/classifier/tests/test_stacking_cv_classifier.py b/mlearner/classifier/tests/test_stacking_cv_classifier.py index e22fd67..eafd0e0 100644 --- a/mlearner/classifier/tests/test_stacking_cv_classifier.py +++ b/mlearner/classifier/tests/test_stacking_cv_classifier.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Authors: Sebastian Raschka # Reiichiro Nakano # @@ -25,10 +25,10 @@ from sklearn.neighbors import KNeighborsClassifier from sklearn.svm import SVC -from mlearn.classifier import StackingCVClassifier -from mlearn.data import iris_data -from mlearn.externals.estimator_checks import NotFittedError -from mlearn.utils import assert_raises +from mlearner.classifier import StackingCVClassifier +from mlearner.data import iris_data +from mlearner.externals.estimator_checks import NotFittedError +from mlearner.utils import assert_raises X_iris, y_iris = iris_data() X_iris = X_iris[:, 1:3] diff --git a/mlearner/cluster/__init__.py b/mlearner/cluster/__init__.py index 5a0e4ff..cdd1121 100644 --- a/mlearner/cluster/__init__.py +++ b/mlearner/cluster/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/cluster/kmeans.py b/mlearner/cluster/kmeans.py index aa96fb2..972447d 100644 --- a/mlearner/cluster/kmeans.py +++ b/mlearner/cluster/kmeans.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Estimator for Linear Regression # Author: Sebastian Raschka @@ -55,7 +55,7 @@ class Kmeans(_BaseModel, _Cluster, _IterativeModel): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/classifier/Kmeans/ + http://rasbt.github.io/mlearner/user_guide/classifier/Kmeans/ """ diff --git a/mlearner/cluster/tests/test_kmeans.py b/mlearner/cluster/tests/test_kmeans.py index 1a5092c..c27a2f0 100644 --- a/mlearner/cluster/tests/test_kmeans.py +++ b/mlearner/cluster/tests/test_kmeans.py @@ -1,12 +1,12 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.data import three_blobs_data -from mlearn.cluster import Kmeans -from mlearn.utils import assert_raises +from mlearner.data import three_blobs_data +from mlearner.cluster import Kmeans +from mlearner.utils import assert_raises import numpy as np from sklearn.base import clone diff --git a/mlearner/data/__init__.py b/mlearner/data/__init__.py index 7d334ee..b655310 100644 --- a/mlearner/data/__init__.py +++ b/mlearner/data/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/data/autompg.py b/mlearner/data/autompg.py index 9caed92..3f461c6 100644 --- a/mlearner/data/autompg.py +++ b/mlearner/data/autompg.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for loading the open-source AutoMPG dataset. # Author: Sebastian Raschka @@ -42,7 +42,7 @@ def autompg_data(): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/data/autompg_data/ + http://rasbt.github.io/mlearner/user_guide/data/autompg_data/ """ tmp = np.genfromtxt(fname=DATA_PATH, delimiter=',') diff --git a/mlearner/data/boston_housing.py b/mlearner/data/boston_housing.py index 64b3100..7621f38 100644 --- a/mlearner/data/boston_housing.py +++ b/mlearner/data/boston_housing.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for loading the open-source Boston Housing dataset. # Author: Sebastian Raschka @@ -50,7 +50,7 @@ def boston_housing_data(): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/data/boston_housing_data/ + http://rasbt.github.io/mlearner/user_guide/data/boston_housing_data/ """ tmp = np.genfromtxt(fname=DATA_PATH, delimiter=',', dtype=float) diff --git a/mlearner/data/iris.py b/mlearner/data/iris.py index a14fb11..8d3b311 100644 --- a/mlearner/data/iris.py +++ b/mlearner/data/iris.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for loading the open-source Iris Flower dataset. # Author: Sebastian Raschka @@ -64,7 +64,7 @@ def iris_data(version='uci'): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/data/iris_data/ + http://rasbt.github.io/mlearner/user_guide/data/iris_data/ """ if version == "uci": diff --git a/mlearner/data/local_mnist.py b/mlearner/data/local_mnist.py index 1aba90c..3902aae 100644 --- a/mlearner/data/local_mnist.py +++ b/mlearner/data/local_mnist.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for fetching the open-source MNIST dataset. # Author: Sebastian Raschka @@ -30,7 +30,7 @@ def loadlocal_mnist(images_path, labels_path): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/data/loadlocal_mnist/ + http://rasbt.github.io/mlearner/user_guide/data/loadlocal_mnist/ """ with open(labels_path, 'rb') as lbpath: diff --git a/mlearner/data/mnist.py b/mlearner/data/mnist.py index a1b6955..fc8c761 100644 --- a/mlearner/data/mnist.py +++ b/mlearner/data/mnist.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for loading the open-source MNIST. # Author: Sebastian Raschka @@ -29,7 +29,7 @@ def mnist_data(): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/data/mnist_data/ + http://rasbt.github.io/mlearner/user_guide/data/mnist_data/ """ tmp = np.genfromtxt(fname=DATA_PATH, delimiter=',') diff --git a/mlearner/data/multiplexer.py b/mlearner/data/multiplexer.py index 706732e..817f150 100644 --- a/mlearner/data/multiplexer.py +++ b/mlearner/data/multiplexer.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for creating a multiplexer dataset for classification. # Author: Sebastian Raschka @@ -14,7 +14,7 @@ def make_multiplexer_dataset(address_bits=2, sample_size=100, random_seed=None): """Function to create a binary n-bit multiplexer dataset. - New in mlearn v0.9 + New in mlearner v0.9 Parameters --------------- @@ -62,7 +62,7 @@ def make_multiplexer_dataset(address_bits=2, sample_size=100, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/data/make_multiplexer_dataset + http://rasbt.github.io/mlearner/user_guide/data/make_multiplexer_dataset """ if not isinstance(address_bits, int): diff --git a/mlearner/data/tests/test_datasets.py b/mlearner/data/tests/test_datasets.py index d0c3dfb..52b50ff 100644 --- a/mlearner/data/tests/test_datasets.py +++ b/mlearner/data/tests/test_datasets.py @@ -1,17 +1,17 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.data import iris_data -from mlearn.data import wine_data -from mlearn.data import autompg_data -from mlearn.data import mnist_data -from mlearn.data import boston_housing_data -from mlearn.data import three_blobs_data +from mlearner.data import iris_data +from mlearner.data import wine_data +from mlearner.data import autompg_data +from mlearner.data import mnist_data +from mlearner.data import boston_housing_data +from mlearner.data import three_blobs_data def test_import_wine_data(): diff --git a/mlearner/data/tests/test_iris.py b/mlearner/data/tests/test_iris.py index abc9389..c19f632 100644 --- a/mlearner/data/tests/test_iris.py +++ b/mlearner/data/tests/test_iris.py @@ -1,4 +1,4 @@ -from mlearn.data import iris_data +from mlearner.data import iris_data import pytest import numpy as np import os diff --git a/mlearner/data/tests/test_multiplexer.py b/mlearner/data/tests/test_multiplexer.py index d7e991a..640ffca 100644 --- a/mlearner/data/tests/test_multiplexer.py +++ b/mlearner/data/tests/test_multiplexer.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Author: Sebastian Raschka # @@ -8,8 +8,8 @@ import numpy as np import sys -from mlearn.data import make_multiplexer_dataset -from mlearn.utils import assert_raises +from mlearner.data import make_multiplexer_dataset +from mlearner.utils import assert_raises def test_defaults(): diff --git a/mlearner/data/three_blobs.py b/mlearner/data/three_blobs.py index 49135e4..dfb5638 100644 --- a/mlearner/data/three_blobs.py +++ b/mlearner/data/three_blobs.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for loading a sample dataset for clustering evaluations # Author: Sebastian Raschka @@ -29,7 +29,7 @@ def three_blobs_data(): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/data/three_blobs_data + http://rasbt.github.io/mlearner/user_guide/data/three_blobs_data """ tmp = np.genfromtxt(fname=DATA_PATH, delimiter=',') diff --git a/mlearner/data/wine.py b/mlearner/data/wine.py index 6a9b753..54780b6 100644 --- a/mlearner/data/wine.py +++ b/mlearner/data/wine.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for loading the open-source Wine dataset. # Author: Sebastian Raschka @@ -46,7 +46,7 @@ def wine_data(): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/data/wine_data + http://rasbt.github.io/mlearner/user_guide/data/wine_data """ tmp = np.loadtxt(DATA_PATH, delimiter=',') diff --git a/mlearner/evaluate/__init__.py b/mlearner/evaluate/__init__.py index f34a90f..8bc5eaa 100644 --- a/mlearner/evaluate/__init__.py +++ b/mlearner/evaluate/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/evaluate/accuracy.py b/mlearner/evaluate/accuracy.py index a97df4c..027bc72 100644 --- a/mlearner/evaluate/accuracy.py +++ b/mlearner/evaluate/accuracy.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for generating per class accuracy # diff --git a/mlearner/evaluate/bias_variance_decomp.py b/mlearner/evaluate/bias_variance_decomp.py index b534170..c7ec92e 100644 --- a/mlearner/evaluate/bias_variance_decomp.py +++ b/mlearner/evaluate/bias_variance_decomp.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Nonparametric Permutation Test # Author: Sebastian Raschka diff --git a/mlearner/evaluate/bootstrap.py b/mlearner/evaluate/bootstrap.py index c057b2e..ca2f870 100644 --- a/mlearner/evaluate/bootstrap.py +++ b/mlearner/evaluate/bootstrap.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Bootstrap functions # Author: Sebastian Raschka @@ -56,7 +56,7 @@ def bootstrap(x, func, num_rounds=1000, ci=0.95, ddof=1, seed=None): Examples -------- - >>> from mlearn.evaluate import bootstrap + >>> from mlearner.evaluate import bootstrap >>> rng = np.random.RandomState(123) >>> x = rng.normal(loc=5., size=100) >>> original, std_err, ci_bounds = bootstrap(x, @@ -72,7 +72,7 @@ def bootstrap(x, func, num_rounds=1000, ci=0.95, ddof=1, seed=None): >>> For more usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/bootstrap/ + http://rasbt.github.io/mlearner/user_guide/evaluate/bootstrap/ """ if ci <= 0 or ci >= 1: diff --git a/mlearner/evaluate/bootstrap_outofbag.py b/mlearner/evaluate/bootstrap_outofbag.py index 324462a..d1cf893 100644 --- a/mlearner/evaluate/bootstrap_outofbag.py +++ b/mlearner/evaluate/bootstrap_outofbag.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Bootstrap functions # Author: Sebastian Raschka @@ -34,7 +34,7 @@ class BootstrapOutOfBag(object): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/BootstrapOutOfBag/ + http://rasbt.github.io/mlearner/user_guide/evaluate/BootstrapOutOfBag/ """ diff --git a/mlearner/evaluate/bootstrap_point632.py b/mlearner/evaluate/bootstrap_point632.py index 7ce4cd9..cb7b0c8 100644 --- a/mlearner/evaluate/bootstrap_point632.py +++ b/mlearner/evaluate/bootstrap_point632.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Bootstrap functions # Author: Sebastian Raschka @@ -109,7 +109,7 @@ def bootstrap_point632_score(estimator, X, y, n_splits=200, Examples -------- >>> from sklearn import datasets, linear_model - >>> from mlearn.evaluate import bootstrap_point632_score + >>> from mlearner.evaluate import bootstrap_point632_score >>> iris = datasets.load_iris() >>> X = iris.data >>> y = iris.target @@ -124,7 +124,7 @@ def bootstrap_point632_score(estimator, X, y, n_splits=200, 95% Confidence interval: [0.90, 0.98] For more usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/bootstrap_point632_score/ + http://rasbt.github.io/mlearner/user_guide/evaluate/bootstrap_point632_score/ """ if not isinstance(n_splits, int) or n_splits < 1: diff --git a/mlearner/evaluate/cochrans_q.py b/mlearner/evaluate/cochrans_q.py index a2009fb..3b6f07c 100644 --- a/mlearner/evaluate/cochrans_q.py +++ b/mlearner/evaluate/cochrans_q.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Author: Sebastian Raschka # @@ -33,7 +33,7 @@ def cochrans_q(y_target, *y_model_predictions): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/cochrans_q/ + http://rasbt.github.io/mlearner/user_guide/evaluate/cochrans_q/ """ diff --git a/mlearner/evaluate/confusion_matrix.py b/mlearner/evaluate/confusion_matrix.py index 68e366a..48d0ce0 100644 --- a/mlearner/evaluate/confusion_matrix.py +++ b/mlearner/evaluate/confusion_matrix.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for generating a confusion matrix. # Author: Sebastian Raschka @@ -34,7 +34,7 @@ def confusion_matrix(y_target, y_predicted, binary=False, positive_label=1): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/confusion_matrix/ + http://rasbt.github.io/mlearner/user_guide/evaluate/confusion_matrix/ """ if not isinstance(y_target, np.ndarray): diff --git a/mlearner/evaluate/f_test.py b/mlearner/evaluate/f_test.py index 4d84322..4742286 100644 --- a/mlearner/evaluate/f_test.py +++ b/mlearner/evaluate/f_test.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Author: Sebastian Raschka # @@ -35,7 +35,7 @@ def ftest(y_target, *y_model_predictions): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/ftest/ + http://rasbt.github.io/mlearner/user_guide/evaluate/ftest/ """ @@ -158,7 +158,7 @@ def combined_ftest_5x2cv(estimator1, estimator2, X, y, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/combined_ftest_5x2cv/ + http://rasbt.github.io/mlearner/user_guide/evaluate/combined_ftest_5x2cv/ """ rng = np.random.RandomState(random_seed) diff --git a/mlearner/evaluate/feature_importance.py b/mlearner/evaluate/feature_importance.py index 3aa230d..234c7ae 100644 --- a/mlearner/evaluate/feature_importance.py +++ b/mlearner/evaluate/feature_importance.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Feature Importance Estimation Through Permutation # Author: Sebastian Raschka @@ -56,7 +56,7 @@ def feature_importance_permutation(X, y, predict_method, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/feature_importance_permutation/ + http://rasbt.github.io/mlearner/user_guide/evaluate/feature_importance_permutation/ """ diff --git a/mlearner/evaluate/holdout.py b/mlearner/evaluate/holdout.py index 2af48e3..f7b1dc7 100644 --- a/mlearner/evaluate/holdout.py +++ b/mlearner/evaluate/holdout.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Author: Sebastian Raschka # diff --git a/mlearner/evaluate/lift_score.py b/mlearner/evaluate/lift_score.py index 1f10b77..cea868b 100644 --- a/mlearner/evaluate/lift_score.py +++ b/mlearner/evaluate/lift_score.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2016 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for generating a confusion matrix. # Author: Sebastian Raschka @@ -41,7 +41,7 @@ def lift_score(y_target, y_predicted, binary=True, positive_label=1): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/lift_score/ + http://rasbt.github.io/mlearner/user_guide/evaluate/lift_score/ """ if not isinstance(y_target, np.ndarray): targ_tmp = np.asarray(y_target) diff --git a/mlearner/evaluate/mcnemar.py b/mlearner/evaluate/mcnemar.py index a341e1e..d8eefba 100644 --- a/mlearner/evaluate/mcnemar.py +++ b/mlearner/evaluate/mcnemar.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Author: Sebastian Raschka # @@ -35,7 +35,7 @@ def mcnemar_table(y_target, y_model1, y_model2): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/mcnemar_table/ + http://rasbt.github.io/mlearner/user_guide/evaluate/mcnemar_table/ """ for ary in (y_target, y_model1, y_model2): @@ -118,7 +118,7 @@ def mcnemar_tables(y_target, *y_model_predictions): ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/mcnemar_tables/ + http://rasbt.github.io/mlearner/user_guide/evaluate/mcnemar_tables/ """ model_lens = set() @@ -190,7 +190,7 @@ def mcnemar(ary, corrected=True, exact=False): ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/mcnemar/ + http://rasbt.github.io/mlearner/user_guide/evaluate/mcnemar/ """ diff --git a/mlearner/evaluate/permutation.py b/mlearner/evaluate/permutation.py index b65baf2..61bce8a 100644 --- a/mlearner/evaluate/permutation.py +++ b/mlearner/evaluate/permutation.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Nonparametric Permutation Test # Author: Sebastian Raschka @@ -63,7 +63,7 @@ def permutation_test(x, y, func='x_mean != y_mean', method='exact', Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/permutation_test/ + http://rasbt.github.io/mlearner/user_guide/evaluate/permutation_test/ """ diff --git a/mlearner/evaluate/proportion_difference.py b/mlearner/evaluate/proportion_difference.py index baa4cd2..f57b5ce 100644 --- a/mlearner/evaluate/proportion_difference.py +++ b/mlearner/evaluate/proportion_difference.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Author: Sebastian Raschka # @@ -36,7 +36,7 @@ def proportion_difference(proportion_1, proportion_2, n_1, n_2=None): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/proportion_difference/ + http://rasbt.github.io/mlearner/user_guide/evaluate/proportion_difference/ """ if n_2 is None: diff --git a/mlearner/evaluate/scoring.py b/mlearner/evaluate/scoring.py index 69abb02..b1b97d3 100644 --- a/mlearner/evaluate/scoring.py +++ b/mlearner/evaluate/scoring.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for scoring predictions. # Author: Sebastian Raschka @@ -7,8 +7,8 @@ # License: BSD 3 clause import numpy as np -from mlearn.evaluate.confusion_matrix import confusion_matrix -from mlearn.evaluate.accuracy import accuracy_score +from mlearner.evaluate.confusion_matrix import confusion_matrix +from mlearner.evaluate.accuracy import accuracy_score def _error(true, pred): @@ -66,7 +66,7 @@ def scoring(y_target, y_predicted, metric='error', Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/scoring/ + http://rasbt.github.io/mlearner/user_guide/evaluate/scoring/ """ implemented = {'error', diff --git a/mlearner/evaluate/tests/test_accuracy.py b/mlearner/evaluate/tests/test_accuracy.py index 4c67bac..3931a85 100644 --- a/mlearner/evaluate/tests/test_accuracy.py +++ b/mlearner/evaluate/tests/test_accuracy.py @@ -1,9 +1,9 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # License: BSD 3 clause import numpy as np -from mlearn.evaluate import accuracy_score +from mlearner.evaluate import accuracy_score from numpy.testing import assert_almost_equal diff --git a/mlearner/evaluate/tests/test_bias_variance_decomp.py b/mlearner/evaluate/tests/test_bias_variance_decomp.py index 1f13a68..e64f448 100644 --- a/mlearner/evaluate/tests/test_bias_variance_decomp.py +++ b/mlearner/evaluate/tests/test_bias_variance_decomp.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Nonparametric Permutation Test # Author: Sebastian Raschka @@ -7,13 +7,13 @@ # License: BSD 3 clause -from mlearn.evaluate import bias_variance_decomp +from mlearner.evaluate import bias_variance_decomp from sklearn.tree import DecisionTreeClassifier from sklearn.tree import DecisionTreeRegressor from sklearn.ensemble import BaggingClassifier from sklearn.ensemble import BaggingRegressor -from mlearn.data import iris_data -from mlearn.data import boston_housing_data +from mlearner.data import iris_data +from mlearner.data import boston_housing_data from sklearn.model_selection import train_test_split diff --git a/mlearner/evaluate/tests/test_bootstrap.py b/mlearner/evaluate/tests/test_bootstrap.py index c346cb3..87670a6 100644 --- a/mlearner/evaluate/tests/test_bootstrap.py +++ b/mlearner/evaluate/tests/test_bootstrap.py @@ -1,12 +1,12 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import numpy as np -from mlearn.evaluate import bootstrap -from mlearn.utils import assert_raises +from mlearner.evaluate import bootstrap +from mlearner.utils import assert_raises def test_defaults(): diff --git a/mlearner/evaluate/tests/test_bootstrap_outofbag.py b/mlearner/evaluate/tests/test_bootstrap_outofbag.py index 2941807..a3c5285 100644 --- a/mlearner/evaluate/tests/test_bootstrap_outofbag.py +++ b/mlearner/evaluate/tests/test_bootstrap_outofbag.py @@ -1,12 +1,12 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import numpy as np -from mlearn.evaluate import BootstrapOutOfBag -from mlearn.utils import assert_raises +from mlearner.evaluate import BootstrapOutOfBag +from mlearner.utils import assert_raises def test_defaults(): diff --git a/mlearner/evaluate/tests/test_bootstrap_point632.py b/mlearner/evaluate/tests/test_bootstrap_point632.py index 4cc6c74..8115f57 100644 --- a/mlearner/evaluate/tests/test_bootstrap_point632.py +++ b/mlearner/evaluate/tests/test_bootstrap_point632.py @@ -1,13 +1,13 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import numpy as np -from mlearn.evaluate import bootstrap_point632_score -from mlearn.utils import assert_raises -from mlearn.data import iris_data +from mlearner.evaluate import bootstrap_point632_score +from mlearner.utils import assert_raises +from mlearner.data import iris_data from sklearn.linear_model import LogisticRegression from sklearn.tree import DecisionTreeClassifier diff --git a/mlearner/evaluate/tests/test_cochran_q.py b/mlearner/evaluate/tests/test_cochran_q.py index 6caca54..5d7133c 100644 --- a/mlearner/evaluate/tests/test_cochran_q.py +++ b/mlearner/evaluate/tests/test_cochran_q.py @@ -1,13 +1,13 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.evaluate import cochrans_q -from mlearn.evaluate import mcnemar_table -from mlearn.evaluate import mcnemar -from mlearn.utils import assert_raises +from mlearner.evaluate import cochrans_q +from mlearner.evaluate import mcnemar_table +from mlearner.evaluate import mcnemar +from mlearner.utils import assert_raises import numpy as np diff --git a/mlearner/evaluate/tests/test_combined_ftest_5x2cv.py b/mlearner/evaluate/tests/test_combined_ftest_5x2cv.py index 39c9e2d..3c34824 100644 --- a/mlearner/evaluate/tests/test_combined_ftest_5x2cv.py +++ b/mlearner/evaluate/tests/test_combined_ftest_5x2cv.py @@ -1,12 +1,12 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.evaluate import combined_ftest_5x2cv -from mlearn.data import iris_data -from mlearn.data import boston_housing_data +from mlearner.evaluate import combined_ftest_5x2cv +from mlearner.data import iris_data +from mlearner.data import boston_housing_data from sklearn.linear_model import LogisticRegression from sklearn.linear_model import Lasso from sklearn.linear_model import Ridge diff --git a/mlearner/evaluate/tests/test_confusion_matrix.py b/mlearner/evaluate/tests/test_confusion_matrix.py index 0fffe41..bd41c1e 100644 --- a/mlearner/evaluate/tests/test_confusion_matrix.py +++ b/mlearner/evaluate/tests/test_confusion_matrix.py @@ -1,11 +1,11 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import numpy as np -from mlearn.evaluate import confusion_matrix +from mlearner.evaluate import confusion_matrix from numpy.testing import assert_array_equal diff --git a/mlearner/evaluate/tests/test_f_test.py b/mlearner/evaluate/tests/test_f_test.py index 2dddd3f..166797b 100644 --- a/mlearner/evaluate/tests/test_f_test.py +++ b/mlearner/evaluate/tests/test_f_test.py @@ -1,11 +1,11 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.evaluate import ftest -from mlearn.utils import assert_raises +from mlearner.evaluate import ftest +from mlearner.utils import assert_raises import numpy as np diff --git a/mlearner/evaluate/tests/test_feature_importance.py b/mlearner/evaluate/tests/test_feature_importance.py index 491fbab..a054c06 100644 --- a/mlearner/evaluate/tests/test_feature_importance.py +++ b/mlearner/evaluate/tests/test_feature_importance.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Feature Importance Estimation Through Permutation # Author: Sebastian Raschka @@ -14,8 +14,8 @@ from sklearn.svm import SVR from sklearn.metrics import r2_score from sklearn.metrics import mean_squared_error -from mlearn.utils import assert_raises -from mlearn.evaluate import feature_importance_permutation +from mlearner.utils import assert_raises +from mlearner.evaluate import feature_importance_permutation def test_num_rounds_not_int(): diff --git a/mlearner/evaluate/tests/test_holdout.py b/mlearner/evaluate/tests/test_holdout.py index 420c22d..2b91f2c 100644 --- a/mlearner/evaluate/tests/test_holdout.py +++ b/mlearner/evaluate/tests/test_holdout.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause @@ -7,10 +7,10 @@ import numpy as np from sklearn.model_selection import GridSearchCV from sklearn.neighbors import KNeighborsClassifier -from mlearn.feature_selection import SequentialFeatureSelector as SFS -from mlearn.evaluate import RandomHoldoutSplit -from mlearn.evaluate import PredefinedHoldoutSplit -from mlearn.data import iris_data +from mlearner.feature_selection import SequentialFeatureSelector as SFS +from mlearner.evaluate import RandomHoldoutSplit +from mlearner.evaluate import PredefinedHoldoutSplit +from mlearner.data import iris_data X, y = iris_data() diff --git a/mlearner/evaluate/tests/test_lift_score.py b/mlearner/evaluate/tests/test_lift_score.py index 27eb588..c24497c 100644 --- a/mlearner/evaluate/tests/test_lift_score.py +++ b/mlearner/evaluate/tests/test_lift_score.py @@ -1,11 +1,11 @@ # Sebastian Raschka 2014-2016 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.evaluate import lift_score -from mlearn.evaluate.lift_score import support +from mlearner.evaluate import lift_score +from mlearner.evaluate.lift_score import support from numpy.testing import assert_array_equal, assert_raises import numpy as np diff --git a/mlearner/evaluate/tests/test_mcnemar_table.py b/mlearner/evaluate/tests/test_mcnemar_table.py index 991575c..45e1155 100644 --- a/mlearner/evaluate/tests/test_mcnemar_table.py +++ b/mlearner/evaluate/tests/test_mcnemar_table.py @@ -1,11 +1,11 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.evaluate import mcnemar_table -from mlearn.utils import assert_raises +from mlearner.evaluate import mcnemar_table +from mlearner.utils import assert_raises import numpy as np diff --git a/mlearner/evaluate/tests/test_mcnemar_tables.py b/mlearner/evaluate/tests/test_mcnemar_tables.py index b833f57..4c1782c 100644 --- a/mlearner/evaluate/tests/test_mcnemar_tables.py +++ b/mlearner/evaluate/tests/test_mcnemar_tables.py @@ -1,11 +1,11 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.evaluate import mcnemar_tables -from mlearn.utils import assert_raises +from mlearner.evaluate import mcnemar_tables +from mlearner.utils import assert_raises import numpy as np diff --git a/mlearner/evaluate/tests/test_mcnemar_test.py b/mlearner/evaluate/tests/test_mcnemar_test.py index 0d5f713..4a5f1ed 100644 --- a/mlearner/evaluate/tests/test_mcnemar_test.py +++ b/mlearner/evaluate/tests/test_mcnemar_test.py @@ -1,11 +1,11 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.evaluate import mcnemar -from mlearn.utils import assert_raises +from mlearner.evaluate import mcnemar +from mlearner.utils import assert_raises from numpy.testing import assert_almost_equal import numpy as np diff --git a/mlearner/evaluate/tests/test_paired_ttest_5x2cv.py b/mlearner/evaluate/tests/test_paired_ttest_5x2cv.py index d9dd71a..212be36 100644 --- a/mlearner/evaluate/tests/test_paired_ttest_5x2cv.py +++ b/mlearner/evaluate/tests/test_paired_ttest_5x2cv.py @@ -1,12 +1,12 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.evaluate import paired_ttest_5x2cv -from mlearn.data import iris_data -from mlearn.data import boston_housing_data +from mlearner.evaluate import paired_ttest_5x2cv +from mlearner.data import iris_data +from mlearner.data import boston_housing_data from sklearn.linear_model import LogisticRegression from sklearn.linear_model import Lasso from sklearn.linear_model import Ridge diff --git a/mlearner/evaluate/tests/test_paired_ttest_kfold.py b/mlearner/evaluate/tests/test_paired_ttest_kfold.py index 670c367..2523df0 100644 --- a/mlearner/evaluate/tests/test_paired_ttest_kfold.py +++ b/mlearner/evaluate/tests/test_paired_ttest_kfold.py @@ -1,12 +1,12 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.evaluate import paired_ttest_kfold_cv -from mlearn.data import iris_data -from mlearn.data import boston_housing_data +from mlearner.evaluate import paired_ttest_kfold_cv +from mlearner.data import iris_data +from mlearner.data import boston_housing_data from sklearn.linear_model import LogisticRegression from sklearn.linear_model import Lasso from sklearn.linear_model import Ridge diff --git a/mlearner/evaluate/tests/test_paired_ttest_resampled.py b/mlearner/evaluate/tests/test_paired_ttest_resampled.py index 8c155d0..b0df510 100644 --- a/mlearner/evaluate/tests/test_paired_ttest_resampled.py +++ b/mlearner/evaluate/tests/test_paired_ttest_resampled.py @@ -1,14 +1,14 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import sys -from mlearn.evaluate import paired_ttest_resampled -from mlearn.utils import assert_raises -from mlearn.data import iris_data -from mlearn.data import boston_housing_data +from mlearner.evaluate import paired_ttest_resampled +from mlearner.utils import assert_raises +from mlearner.data import iris_data +from mlearner.data import boston_housing_data from sklearn.linear_model import LogisticRegression from sklearn.linear_model import Lasso from sklearn.linear_model import Ridge diff --git a/mlearner/evaluate/tests/test_permutation.py b/mlearner/evaluate/tests/test_permutation.py index 4594558..6986f03 100644 --- a/mlearner/evaluate/tests/test_permutation.py +++ b/mlearner/evaluate/tests/test_permutation.py @@ -1,12 +1,12 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import numpy as np -from mlearn.evaluate import permutation_test -from mlearn.utils import assert_raises +from mlearner.evaluate import permutation_test +from mlearner.utils import assert_raises treatment = [689, 656, 668, 660, 679, 663, 664, 647] diff --git a/mlearner/evaluate/tests/test_proportion_difference.py b/mlearner/evaluate/tests/test_proportion_difference.py index c27014a..e73369d 100644 --- a/mlearner/evaluate/tests/test_proportion_difference.py +++ b/mlearner/evaluate/tests/test_proportion_difference.py @@ -1,10 +1,10 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.evaluate import proportion_difference +from mlearner.evaluate import proportion_difference import numpy as np diff --git a/mlearner/evaluate/tests/test_scoring.py b/mlearner/evaluate/tests/test_scoring.py index cd45ef3..05c940a 100644 --- a/mlearner/evaluate/tests/test_scoring.py +++ b/mlearner/evaluate/tests/test_scoring.py @@ -1,10 +1,10 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.evaluate import scoring +from mlearner.evaluate import scoring import numpy as np diff --git a/mlearner/evaluate/ttest.py b/mlearner/evaluate/ttest.py index 8d7e9e0..e374417 100644 --- a/mlearner/evaluate/ttest.py +++ b/mlearner/evaluate/ttest.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Author: Sebastian Raschka # @@ -74,7 +74,7 @@ def paired_ttest_resampled(estimator1, estimator2, X, y, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/paired_ttest_resampled/ + http://rasbt.github.io/mlearner/user_guide/evaluate/paired_ttest_resampled/ """ if (not isinstance(test_size, int) and not isinstance(test_size, float)): @@ -185,7 +185,7 @@ def paired_ttest_kfold_cv(estimator1, estimator2, X, y, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/paired_ttest_kfold_cv/ + http://rasbt.github.io/mlearner/user_guide/evaluate/paired_ttest_kfold_cv/ """ @@ -279,7 +279,7 @@ def paired_ttest_5x2cv(estimator1, estimator2, X, y, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/evaluate/paired_ttest_5x2cv/ + http://rasbt.github.io/mlearner/user_guide/evaluate/paired_ttest_5x2cv/ """ rng = np.random.RandomState(random_seed) diff --git a/mlearner/externals/__init__.py b/mlearner/externals/__init__.py index e84eb68..45a279f 100644 --- a/mlearner/externals/__init__.py +++ b/mlearner/externals/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/feature_extraction/__init__.py b/mlearner/feature_extraction/__init__.py index 57d32b6..c37a9e1 100644 --- a/mlearner/feature_extraction/__init__.py +++ b/mlearner/feature_extraction/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/feature_extraction/base.py b/mlearner/feature_extraction/base.py index 9837b99..51ffa51 100644 --- a/mlearner/feature_extraction/base.py +++ b/mlearner/feature_extraction/base.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Base Classifier (Classifier Parent Class) # Author: Sebastian Raschka diff --git a/mlearner/feature_extraction/linear_discriminant_analysis.py b/mlearner/feature_extraction/linear_discriminant_analysis.py index 7261a6b..0881eb0 100644 --- a/mlearner/feature_extraction/linear_discriminant_analysis.py +++ b/mlearner/feature_extraction/linear_discriminant_analysis.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Linear Discriminant Analysis for dimensionality reduction # Author: Sebastian Raschka @@ -32,7 +32,7 @@ class LinearDiscriminantAnalysis(_BaseModel): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/feature_extraction/LinearDiscriminantAnalysis/ + http://rasbt.github.io/mlearner/user_guide/feature_extraction/LinearDiscriminantAnalysis/ """ def __init__(self, n_discriminants=None): diff --git a/mlearner/feature_extraction/principal_component_analysis.py b/mlearner/feature_extraction/principal_component_analysis.py index 934714e..dabb70d 100644 --- a/mlearner/feature_extraction/principal_component_analysis.py +++ b/mlearner/feature_extraction/principal_component_analysis.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Principal Component Analysis for dimensionality reduction. # Author: Sebastian Raschka @@ -51,7 +51,7 @@ class PrincipalComponentAnalysis(_BaseModel): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/feature_extraction/PrincipalComponentAnalysis/ + http://rasbt.github.io/mlearner/user_guide/feature_extraction/PrincipalComponentAnalysis/ """ def __init__(self, n_components=None, solver='svd', whitening=False): diff --git a/mlearner/feature_extraction/rbf_kernel_pca.py b/mlearner/feature_extraction/rbf_kernel_pca.py index 9c830b0..0d34897 100644 --- a/mlearner/feature_extraction/rbf_kernel_pca.py +++ b/mlearner/feature_extraction/rbf_kernel_pca.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Principal Component Analysis for dimensionality reduction. # Author: Sebastian Raschka @@ -38,7 +38,7 @@ class RBFKernelPCA(_BaseModel): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/feature_extraction/RBFKernelPCA/ + http://rasbt.github.io/mlearner/user_guide/feature_extraction/RBFKernelPCA/ """ def __init__(self, gamma=15.0, n_components=None, copy_X=True): diff --git a/mlearner/feature_extraction/tests/test_base.py b/mlearner/feature_extraction/tests/test_base.py index ad7c4d4..7c4237b 100644 --- a/mlearner/feature_extraction/tests/test_base.py +++ b/mlearner/feature_extraction/tests/test_base.py @@ -1,12 +1,12 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import numpy as np import pytest -from mlearn.feature_extraction.base import _BaseFeatureExtractor +from mlearner.feature_extraction.base import _BaseFeatureExtractor X, y = np.array([[1, 2], [4, 5], [3, 9]]), np.array([1, 2, 3]) diff --git a/mlearner/feature_extraction/tests/test_kernel_pca.py b/mlearner/feature_extraction/tests/test_kernel_pca.py index 5e77e9f..21ecd2f 100644 --- a/mlearner/feature_extraction/tests/test_kernel_pca.py +++ b/mlearner/feature_extraction/tests/test_kernel_pca.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause @@ -7,7 +7,7 @@ import numpy as np import pytest from numpy.testing import assert_almost_equal -from mlearn.feature_extraction import RBFKernelPCA as KPCA +from mlearner.feature_extraction import RBFKernelPCA as KPCA from sklearn.datasets import make_moons X1, y1 = make_moons(n_samples=50, random_state=1) diff --git a/mlearner/feature_extraction/tests/test_linear_discriminant_analysis.py b/mlearner/feature_extraction/tests/test_linear_discriminant_analysis.py index 1ecf7f2..43182f6 100644 --- a/mlearner/feature_extraction/tests/test_linear_discriminant_analysis.py +++ b/mlearner/feature_extraction/tests/test_linear_discriminant_analysis.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause @@ -7,9 +7,9 @@ import numpy as np import pytest from numpy.testing import assert_almost_equal -from mlearn.feature_extraction import LinearDiscriminantAnalysis as LDA -from mlearn.data import iris_data -from mlearn.preprocessing import standardize +from mlearner.feature_extraction import LinearDiscriminantAnalysis as LDA +from mlearner.data import iris_data +from mlearner.preprocessing import standardize X, y = iris_data() X = standardize(X) diff --git a/mlearner/feature_extraction/tests/test_principal_component_analysis.py b/mlearner/feature_extraction/tests/test_principal_component_analysis.py index aa95760..7fa0f90 100644 --- a/mlearner/feature_extraction/tests/test_principal_component_analysis.py +++ b/mlearner/feature_extraction/tests/test_principal_component_analysis.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause @@ -7,10 +7,10 @@ import numpy as np from numpy.testing import assert_almost_equal from numpy.testing import assert_allclose -from mlearn.utils import assert_raises -from mlearn.feature_extraction import PrincipalComponentAnalysis as PCA -from mlearn.data import iris_data -from mlearn.preprocessing import standardize +from mlearner.utils import assert_raises +from mlearner.feature_extraction import PrincipalComponentAnalysis as PCA +from mlearner.data import iris_data +from mlearner.preprocessing import standardize X, y = iris_data() X_std = standardize(X) diff --git a/mlearner/feature_selection/__init__.py b/mlearner/feature_selection/__init__.py index bde75a0..d5e2d02 100644 --- a/mlearner/feature_selection/__init__.py +++ b/mlearner/feature_selection/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/feature_selection/column_selector.py b/mlearner/feature_selection/column_selector.py index bbab097..e82cf47 100644 --- a/mlearner/feature_selection/column_selector.py +++ b/mlearner/feature_selection/column_selector.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Object for selecting a dataset column in scikit-learn pipelines. # Author: Sebastian Raschka @@ -33,7 +33,7 @@ class ColumnSelector(BaseEstimator): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/feature_selection/ColumnSelector/ + http://rasbt.github.io/mlearner/user_guide/feature_selection/ColumnSelector/ """ diff --git a/mlearner/feature_selection/exhaustive_feature_selector.py b/mlearner/feature_selection/exhaustive_feature_selector.py index 2c6a500..8e6fc4b 100644 --- a/mlearner/feature_selection/exhaustive_feature_selector.py +++ b/mlearner/feature_selection/exhaustive_feature_selector.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Algorithm for exhaustive feature selection. # Author: Sebastian Raschka @@ -146,7 +146,7 @@ class ExhaustiveFeatureSelector(BaseEstimator, MetaEstimatorMixin): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/feature_selection/ExhaustiveFeatureSelector/ + http://rasbt.github.io/mlearner/user_guide/feature_selection/ExhaustiveFeatureSelector/ """ def __init__(self, estimator, min_features=1, max_features=1, diff --git a/mlearner/feature_selection/sequential_feature_selector.py b/mlearner/feature_selection/sequential_feature_selector.py index bd69c0c..15082cb 100644 --- a/mlearner/feature_selection/sequential_feature_selector.py +++ b/mlearner/feature_selection/sequential_feature_selector.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Algorithm for sequential feature selection. # Author: Sebastian Raschka @@ -139,7 +139,7 @@ class SequentialFeatureSelector(_BaseXComposition, MetaEstimatorMixin): `fixed_features` is not `None`, make sure that the number of features to be selected is greater than `len(fixed_features)`. In other words, ensure that `k_features > len(fixed_features)`. - New in mlearn v. 0.18.0. + New in mlearner v. 0.18.0. Attributes ---------- @@ -171,7 +171,7 @@ class SequentialFeatureSelector(_BaseXComposition, MetaEstimatorMixin): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/feature_selection/SequentialFeatureSelector/ + http://rasbt.github.io/mlearner/user_guide/feature_selection/SequentialFeatureSelector/ """ def __init__(self, estimator, k_features=1, diff --git a/mlearner/feature_selection/tests/test_column_selector.py b/mlearner/feature_selection/tests/test_column_selector.py index 2c133b8..34d0af9 100644 --- a/mlearner/feature_selection/tests/test_column_selector.py +++ b/mlearner/feature_selection/tests/test_column_selector.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Object for selecting a dataset column in scikit-learn pipelines. # Author: Sebastian Raschka @@ -8,7 +8,7 @@ import numpy as np import pandas as pd -from mlearn.feature_selection import ColumnSelector +from mlearner.feature_selection import ColumnSelector from sklearn.linear_model import LogisticRegression, LinearRegression from sklearn import datasets from sklearn.pipeline import make_pipeline diff --git a/mlearner/feature_selection/tests/test_exhaustive_feature_selector.py b/mlearner/feature_selection/tests/test_exhaustive_feature_selector.py index e6c64c1..50375ad 100644 --- a/mlearner/feature_selection/tests/test_exhaustive_feature_selector.py +++ b/mlearner/feature_selection/tests/test_exhaustive_feature_selector.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause @@ -9,14 +9,14 @@ import pandas as pd from distutils.version import LooseVersion as Version from numpy.testing import assert_almost_equal -from mlearn.feature_selection import ExhaustiveFeatureSelector as EFS +from mlearner.feature_selection import ExhaustiveFeatureSelector as EFS from sklearn.ensemble import RandomForestClassifier from sklearn.neighbors import KNeighborsClassifier -from mlearn.classifier import SoftmaxRegression +from mlearner.classifier import SoftmaxRegression from sklearn.datasets import load_iris from sklearn.linear_model import LinearRegression from sklearn.datasets import load_boston -from mlearn.utils import assert_raises +from mlearner.utils import assert_raises from sklearn.model_selection import GroupKFold from sklearn import __version__ as sklearn_version diff --git a/mlearner/feature_selection/tests/test_sequential_feature_selector.py b/mlearner/feature_selection/tests/test_sequential_feature_selector.py index 7adc52c..34c134b 100644 --- a/mlearner/feature_selection/tests/test_sequential_feature_selector.py +++ b/mlearner/feature_selection/tests/test_sequential_feature_selector.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause @@ -22,9 +22,9 @@ from sklearn.neighbors import KNeighborsClassifier from sklearn.pipeline import Pipeline -from mlearn.classifier import SoftmaxRegression -from mlearn.feature_selection import SequentialFeatureSelector as SFS -from mlearn.utils import assert_raises +from mlearner.classifier import SoftmaxRegression +from mlearner.feature_selection import SequentialFeatureSelector as SFS +from mlearner.utils import assert_raises from distutils.version import LooseVersion as Version from sklearn import __version__ as sklearn_version diff --git a/mlearner/feature_selection/tests/test_sequential_feature_selector_fixed_features.py b/mlearner/feature_selection/tests/test_sequential_feature_selector_fixed_features.py index 35abd9e..4199e91 100644 --- a/mlearner/feature_selection/tests/test_sequential_feature_selector_fixed_features.py +++ b/mlearner/feature_selection/tests/test_sequential_feature_selector_fixed_features.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause @@ -8,8 +8,8 @@ import pandas as pd from sklearn.datasets import load_iris from sklearn.neighbors import KNeighborsClassifier -from mlearn.feature_selection import SequentialFeatureSelector as SFS -from mlearn.utils import assert_raises +from mlearner.feature_selection import SequentialFeatureSelector as SFS +from mlearner.utils import assert_raises iris = load_iris() diff --git a/mlearner/file_io/__init__.py b/mlearner/file_io/__init__.py index b82688c..c12cbb0 100644 --- a/mlearner/file_io/__init__.py +++ b/mlearner/file_io/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/file_io/find_filegroups.py b/mlearner/file_io/find_filegroups.py index 0d7fd6c..e5752d8 100644 --- a/mlearner/file_io/find_filegroups.py +++ b/mlearner/file_io/find_filegroups.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for collecting file-group names from local directories. # Author: Sebastian Raschka @@ -51,7 +51,7 @@ def find_filegroups(paths, substring='', extensions=None, validity_check=True, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/file_io/find_filegroups/ + http://rasbt.github.io/mlearner/user_guide/file_io/find_filegroups/ """ n = len(paths) diff --git a/mlearner/file_io/find_files.py b/mlearner/file_io/find_files.py index 3cfb5fa..75d193e 100644 --- a/mlearner/file_io/find_files.py +++ b/mlearner/file_io/find_files.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for searching files in local directories. # Author: Sebastian Raschka @@ -39,7 +39,7 @@ def find_files(substring, path, recursive=False, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/file_io/find_files/ + http://rasbt.github.io/mlearner/user_guide/file_io/find_files/ """ def check_file(f, path): diff --git a/mlearner/frequent_patterns/__init__.py b/mlearner/frequent_patterns/__init__.py index 1e76321..f35922a 100644 --- a/mlearner/frequent_patterns/__init__.py +++ b/mlearner/frequent_patterns/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/frequent_patterns/apriori.py b/mlearner/frequent_patterns/apriori.py index b7d139a..c6c5723 100644 --- a/mlearner/frequent_patterns/apriori.py +++ b/mlearner/frequent_patterns/apriori.py @@ -36,7 +36,7 @@ def generate_new_combinations(old_combinations): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/frequent_patterns/generate_new_combinations/ + http://rasbt.github.io/mlearner/user_guide/frequent_patterns/generate_new_combinations/ """ @@ -105,7 +105,7 @@ def generate_new_combinations_low_memory(old_combinations, X, min_support, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/frequent_patterns/generate_new_combinations/ + http://rasbt.github.io/mlearner/user_guide/frequent_patterns/generate_new_combinations/ """ @@ -144,7 +144,7 @@ def apriori(df, min_support=0.5, use_colnames=False, max_len=None, verbose=0, user_guide/sparse.html#sparse-data-structures) Please note that the old pandas SparseDataFrame format - is no longer supported in mlearn >= 0.17.2. + is no longer supported in mlearner >= 0.17.2. The allowed values are either 0/1 or True/False. For example, @@ -200,7 +200,7 @@ def apriori(df, min_support=0.5, use_colnames=False, max_len=None, verbose=0, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/frequent_patterns/apriori/ + http://rasbt.github.io/mlearner/user_guide/frequent_patterns/apriori/ """ @@ -224,7 +224,7 @@ def _support(_x, _n_rows, _is_sparse): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/frequent_patterns/apriori/ + http://rasbt.github.io/mlearner/user_guide/frequent_patterns/apriori/ """ out = (np.sum(_x, axis=0) / _n_rows) diff --git a/mlearner/frequent_patterns/association_rules.py b/mlearner/frequent_patterns/association_rules.py index a497b3f..ba1ff6a 100644 --- a/mlearner/frequent_patterns/association_rules.py +++ b/mlearner/frequent_patterns/association_rules.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Function for generating association rules # @@ -73,7 +73,7 @@ def association_rules(df, metric="confidence", Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/frequent_patterns/association_rules/ + http://rasbt.github.io/mlearner/user_guide/frequent_patterns/association_rules/ """ diff --git a/mlearner/frequent_patterns/fpcommon.py b/mlearner/frequent_patterns/fpcommon.py index ba0d29c..0bcf242 100644 --- a/mlearner/frequent_patterns/fpcommon.py +++ b/mlearner/frequent_patterns/fpcommon.py @@ -78,7 +78,7 @@ def valid_input_check(df): if f"{type(df)}" == "": msg = ("SparseDataFrame support has been deprecated in pandas 1.0," - " and is no longer supported in mlearn. " + " and is no longer supported in mlearner. " " Please" " see the pandas migration guide at" " https://pandas.pydata.org/pandas-docs/" diff --git a/mlearner/frequent_patterns/fpgrowth.py b/mlearner/frequent_patterns/fpgrowth.py index b902960..b88c040 100644 --- a/mlearner/frequent_patterns/fpgrowth.py +++ b/mlearner/frequent_patterns/fpgrowth.py @@ -1,4 +1,4 @@ -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Steve Harenberg # # License: BSD 3 clause @@ -20,7 +20,7 @@ def fpgrowth(df, min_support=0.5, use_colnames=False, max_len=None, verbose=0): user_guide/sparse.html#sparse-data-structures) Please note that the old pandas SparseDataFrame format - is no longer supported in mlearn >= 0.17.2. + is no longer supported in mlearner >= 0.17.2. The allowed values are either 0/1 or True/False. For example, diff --git a/mlearner/frequent_patterns/fpmax.py b/mlearner/frequent_patterns/fpmax.py index a856fdf..9aaa8b8 100644 --- a/mlearner/frequent_patterns/fpmax.py +++ b/mlearner/frequent_patterns/fpmax.py @@ -1,4 +1,4 @@ -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Steve Harenberg # # License: BSD 3 clause @@ -20,7 +20,7 @@ def fpmax(df, min_support=0.5, use_colnames=False, max_len=None, verbose=0): user_guide/sparse.html#sparse-data-structures) Please note that the old pandas SparseDataFrame format - is no longer supported in mlearn >= 0.17.2. + is no longer supported in mlearner >= 0.17.2. The allowed values are either 0/1 or True/False. For example, diff --git a/mlearner/frequent_patterns/tests/test_apriori.py b/mlearner/frequent_patterns/tests/test_apriori.py index 58cd5ae..616ea60 100644 --- a/mlearner/frequent_patterns/tests/test_apriori.py +++ b/mlearner/frequent_patterns/tests/test_apriori.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause @@ -8,7 +8,7 @@ import numpy as np from test_fpbase import FPTestEdgeCases, FPTestErrors, \ FPTestEx1All, FPTestEx2All, FPTestEx3All -from mlearn.frequent_patterns import apriori +from mlearner.frequent_patterns import apriori def apriori_wrapper_low_memory(*args, **kwargs): diff --git a/mlearner/frequent_patterns/tests/test_association_rules.py b/mlearner/frequent_patterns/tests/test_association_rules.py index aad02d6..2b52092 100644 --- a/mlearner/frequent_patterns/tests/test_association_rules.py +++ b/mlearner/frequent_patterns/tests/test_association_rules.py @@ -1,6 +1,6 @@ import numpy as np import pandas as pd -from mlearn.frequent_patterns import apriori, association_rules +from mlearner.frequent_patterns import apriori, association_rules from numpy.testing import assert_raises as numpy_assert_raises one_ary = np.array([[0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1], @@ -193,7 +193,7 @@ def test_override_metric_with_support(): def test_on_df_with_missing_entries(): # this is a data frame where information about # antecedents and consequents have been cropped - # see https://github.com/jaisenbe58r/MLearn/issues/390 + # see https://github.com/jaisenbe58r/mlearnerer/issues/390 # for more details dict = {'itemsets': [['177', '176'], ['177', '179'], ['176', '178'], ['176', '179'], @@ -210,7 +210,7 @@ def test_on_df_with_missing_entries(): def test_on_df_with_missing_entries_support_only(): # this is a data frame where information about # antecedents and consequents have been cropped - # see https://github.com/jaisenbe58r/MLearn/issues/390 + # see https://github.com/jaisenbe58r/mlearnerer/issues/390 # for more details dict = {'itemsets': [['177', '176'], ['177', '179'], ['176', '178'], ['176', '179'], diff --git a/mlearner/frequent_patterns/tests/test_fpbase.py b/mlearner/frequent_patterns/tests/test_fpbase.py index 09e03a0..43cd130 100644 --- a/mlearner/frequent_patterns/tests/test_fpbase.py +++ b/mlearner/frequent_patterns/tests/test_fpbase.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause @@ -7,8 +7,8 @@ import numpy as np from numpy.testing import assert_array_equal from scipy.sparse import csr_matrix -from mlearn.utils import assert_raises -from mlearn.preprocessing import TransactionEncoder +from mlearner.utils import assert_raises +from mlearner.preprocessing import TransactionEncoder import pandas as pd from pandas import __version__ as pandas_version from distutils.version import LooseVersion as Version diff --git a/mlearner/frequent_patterns/tests/test_fpgrowth.py b/mlearner/frequent_patterns/tests/test_fpgrowth.py index 54db47b..167c8ec 100644 --- a/mlearner/frequent_patterns/tests/test_fpgrowth.py +++ b/mlearner/frequent_patterns/tests/test_fpgrowth.py @@ -2,7 +2,7 @@ import numpy as np from test_fpbase import FPTestEdgeCases, FPTestErrors, \ FPTestEx1All, FPTestEx2All, FPTestEx3All -from mlearn.frequent_patterns import fpgrowth +from mlearner.frequent_patterns import fpgrowth class TestEdgeCases(unittest.TestCase, FPTestEdgeCases): diff --git a/mlearner/frequent_patterns/tests/test_fpmax.py b/mlearner/frequent_patterns/tests/test_fpmax.py index 5080665..f6c0f5c 100644 --- a/mlearner/frequent_patterns/tests/test_fpmax.py +++ b/mlearner/frequent_patterns/tests/test_fpmax.py @@ -1,7 +1,7 @@ import unittest import pandas as pd import numpy as np -from mlearn.frequent_patterns import fpmax +from mlearner.frequent_patterns import fpmax from test_fpbase import FPTestEdgeCases, FPTestErrors, FPTestEx1, FPTestEx2, \ FPTestEx3All from test_fpbase import compare_dataframes diff --git a/mlearner/image/__init__.py b/mlearner/image/__init__.py index 9a75853..a356ae2 100644 --- a/mlearner/image/__init__.py +++ b/mlearner/image/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/image/extract_face_landmarks.py b/mlearner/image/extract_face_landmarks.py index 10a88b9..4c2c85f 100644 --- a/mlearner/image/extract_face_landmarks.py +++ b/mlearner/image/extract_face_landmarks.py @@ -1,6 +1,6 @@ # Sebastian Raschka 2014-2020 # contributor: Vahid Mirjalili -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A counter class for printing the progress of an iterator. # Author: Sebastian Raschka @@ -13,13 +13,13 @@ import warnings from .utils import check_exists, download_url, extract_file -predictor_path = '~/mlearn_data/shape_predictor_68_face_landmarks.dat' +predictor_path = '~/mlearner_data/shape_predictor_68_face_landmarks.dat' predictor_url = ("http://dlib.net/files/" "shape_predictor_68_face_landmarks.dat.bz2") if not check_exists(predictor_path): - download_url(predictor_url, save_path='~/mlearn_data/') - extract_file('~/mlearn_data/shape_predictor_68_face_landmarks.dat.bz2') + download_url(predictor_url, save_path='~/mlearner_data/') + extract_file('~/mlearner_data/shape_predictor_68_face_landmarks.dat.bz2') detector = dlib.get_frontal_face_detector() predictor = dlib.shape_predictor(os.path.expanduser(predictor_path)) @@ -58,7 +58,7 @@ def extract_face_landmarks(img, return_dtype=np.int32): Examples ---------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/sources/image/extract_face_landmarks.ipynb + http://rasbt.github.io/mlearner/user_guide/sources/image/extract_face_landmarks.ipynb """ faces = detector(img, 1) # detecting faces diff --git a/mlearner/image/eyepad_align.py b/mlearner/image/eyepad_align.py index 83fa18d..385c281 100644 --- a/mlearner/image/eyepad_align.py +++ b/mlearner/image/eyepad_align.py @@ -1,6 +1,6 @@ # Sebastian Raschka 2014-2020 # contributor: Vahid Mirjalili -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A class for transforming face images. # Author: Sebastian Raschka @@ -58,7 +58,7 @@ class EyepadAlign(object): target_width_ : the width of the transformed output image. For more usage examples, please see - http://rasbt.github.io/mlearn/user_guide/image/EyepadAlign/ + http://rasbt.github.io/mlearner/user_guide/image/EyepadAlign/ Returns ------- @@ -200,7 +200,7 @@ def fit_values(self, target_landmarks, target_width, target_height): --------- target_landmarks : np.array, shape=(height, width) NumPy array containing the locations of the facial landmarks - as determined by `mlearn.image.extract_face_landmarks` + as determined by `mlearner.image.extract_face_landmarks` target_height : int image height diff --git a/mlearner/image/tests/test_extract_face_landmarks.py b/mlearner/image/tests/test_extract_face_landmarks.py index e5474eb..7a31c44 100644 --- a/mlearner/image/tests/test_extract_face_landmarks.py +++ b/mlearner/image/tests/test_extract_face_landmarks.py @@ -1,10 +1,10 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.image import extract_face_landmarks +from mlearner.image import extract_face_landmarks import imageio import numpy as np import os @@ -23,7 +23,7 @@ def rgb2gray(rgb): @pytest.mark.skipif(TRAVIS, reason="DLIB download too slow") def test_defaults(): - img = imageio.imread('mlearn/image/tests/data/lena-small.png') + img = imageio.imread('mlearner/image/tests/data/lena-small.png') landmarks1 = extract_face_landmarks(img) landmarks2 = extract_face_landmarks(np.asarray(img)) np.testing.assert_array_equal(landmarks1, landmarks2) @@ -45,7 +45,7 @@ def test_defaults(): @pytest.mark.skipif(TRAVIS, reason="DLIB download too slow") def test_jpg(): - img = imageio.imread('mlearn/image/tests/data/lena-small.jpg') + img = imageio.imread('mlearner/image/tests/data/lena-small.jpg') landmarks1 = extract_face_landmarks(img) landmarks2 = extract_face_landmarks(np.asarray(img)) np.testing.assert_array_equal(landmarks1, landmarks2) @@ -74,7 +74,7 @@ def test_jpg(): @pytest.mark.skipif(TRAVIS, reason="DLIB download too slow") def test_grayscale(): - img = imageio.imread('mlearn/image/tests/data/lena-small.png') + img = imageio.imread('mlearner/image/tests/data/lena-small.png') img = rgb2gray(img) assert img.ndim == 2 landmarks1 = extract_face_landmarks(img) diff --git a/mlearner/image/tests/test_eyepad_align.py b/mlearner/image/tests/test_eyepad_align.py index e6b78f8..849f4b8 100644 --- a/mlearner/image/tests/test_eyepad_align.py +++ b/mlearner/image/tests/test_eyepad_align.py @@ -1,11 +1,11 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.image import EyepadAlign -from mlearn.image import extract_face_landmarks +from mlearner.image import EyepadAlign +from mlearner.image import extract_face_landmarks import imageio import numpy as np import os @@ -20,7 +20,7 @@ @pytest.mark.skipif(TRAVIS, reason="DLIB download too slow") def test_defaults(): - path = 'mlearn/image/tests/data/' + path = 'mlearner/image/tests/data/' eyepad = EyepadAlign() target_image = imageio.imread(os.path.join(path, 'celeba-subset/000001.jpg')) @@ -54,7 +54,7 @@ def test_defaults(): @pytest.mark.skipif(TRAVIS, reason="DLIB download too slow") def test_fit2dir(): - path = 'mlearn/image/tests/data/' + path = 'mlearner/image/tests/data/' eyepad = EyepadAlign() eyepad.fit_directory(target_img_dir=os.path.join(path, 'celeba-subset/'), target_width=178, @@ -90,7 +90,7 @@ def test_fit2dir(): @pytest.mark.skipif(TRAVIS, reason="DLIB download too slow") def test_empty_dir(): - path = 'mlearn/image/tests/data/' + path = 'mlearner/image/tests/data/' eyepad = EyepadAlign() def tmp_func(): diff --git a/mlearner/image/utils.py b/mlearner/image/utils.py index 2044a6f..4f4d30b 100644 --- a/mlearner/image/utils.py +++ b/mlearner/image/utils.py @@ -1,6 +1,6 @@ # Sebastian Raschka 2014-2020 # contributor: Vahid Mirjalili -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A counter class for printing the progress of an iterator. # Author: Sebastian Raschka diff --git a/mlearner/math/__init__.py b/mlearner/math/__init__.py index ec8f41b..675f0e1 100644 --- a/mlearner/math/__init__.py +++ b/mlearner/math/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/math/counting.py b/mlearner/math/counting.py index b7dd244..64275e9 100644 --- a/mlearner/math/counting.py +++ b/mlearner/math/counting.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Functions for different counting operations. # Author: Sebastian Raschka @@ -35,7 +35,7 @@ def num_combinations(n, k, with_replacement=False): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/math/num_combinations/ + http://rasbt.github.io/mlearner/user_guide/math/num_combinations/ """ if with_replacement: @@ -69,7 +69,7 @@ def num_permutations(n, k, with_replacement=False): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/math/num_permutations/ + http://rasbt.github.io/mlearner/user_guide/math/num_permutations/ """ if with_replacement: diff --git a/mlearner/math/linalg.py b/mlearner/math/linalg.py index 89eb357..8ceb281 100644 --- a/mlearner/math/linalg.py +++ b/mlearner/math/linalg.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Functions for different linear algebra operations. # Author: Sebastian Raschka diff --git a/mlearner/math/tests/test_counting.py b/mlearner/math/tests/test_counting.py index 67b97d1..e188ed6 100644 --- a/mlearner/math/tests/test_counting.py +++ b/mlearner/math/tests/test_counting.py @@ -1,13 +1,13 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.math import factorial -from mlearn.math import num_permutations -from mlearn.math import num_combinations +from mlearner.math import factorial +from mlearner.math import num_permutations +from mlearner.math import num_combinations def test_factorial(): diff --git a/mlearner/math/tests/test_linalg.py b/mlearner/math/tests/test_linalg.py index 47dbeec..d9a68ad 100644 --- a/mlearner/math/tests/test_linalg.py +++ b/mlearner/math/tests/test_linalg.py @@ -1,13 +1,13 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import numpy as np -from mlearn.math import vectorspace_orthonormalization -from mlearn.math import vectorspace_dimensionality +from mlearner.math import vectorspace_orthonormalization +from mlearner.math import vectorspace_dimensionality def test_vectorspace_orthonormalization(): diff --git a/mlearner/plotting/__init__.py b/mlearner/plotting/__init__.py index d0f0b50..e3f880c 100644 --- a/mlearner/plotting/__init__.py +++ b/mlearner/plotting/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/plotting/checkerboard.py b/mlearner/plotting/checkerboard.py index 39430cf..9edd218 100644 --- a/mlearner/plotting/checkerboard.py +++ b/mlearner/plotting/checkerboard.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Implementation of the mulitnomial logistic regression algorithm for # classification. @@ -56,7 +56,7 @@ def checkerboard_plot(ary, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/plotting/checkerboard_plot/ + http://rasbt.github.io/mlearner/user_guide/plotting/checkerboard_plot/ """ diff --git a/mlearner/plotting/decision_regions.py b/mlearner/plotting/decision_regions.py index 1c06ff2..8709154 100644 --- a/mlearner/plotting/decision_regions.py +++ b/mlearner/plotting/decision_regions.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for plotting decision regions of classifiers. # Author: Sebastian Raschka @@ -9,7 +9,7 @@ from itertools import cycle import matplotlib.pyplot as plt import numpy as np -from mlearn.utils import check_Xy, format_kwarg_dictionaries +from mlearner.utils import check_Xy, format_kwarg_dictionaries import warnings from math import floor from math import ceil @@ -125,7 +125,7 @@ def plot_decision_regions(X, y, clf, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/plotting/plot_decision_regions/ + http://rasbt.github.io/mlearner/user_guide/plotting/plot_decision_regions/ """ diff --git a/mlearner/plotting/ecdf.py b/mlearner/plotting/ecdf.py index 5dcd453..7cb496e 100644 --- a/mlearner/plotting/ecdf.py +++ b/mlearner/plotting/ecdf.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for plotting decision regions of classifiers. # Author: Sebastian Raschka @@ -52,7 +52,7 @@ def ecdf(x, y_label='ECDF', x_label=None, ax=None, percentile=None, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/plotting/ecdf/ + http://rasbt.github.io/mlearner/user_guide/plotting/ecdf/ """ if ax is None: diff --git a/mlearner/plotting/enrichment_plot.py b/mlearner/plotting/enrichment_plot.py index 4393c9f..1dde796 100644 --- a/mlearner/plotting/enrichment_plot.py +++ b/mlearner/plotting/enrichment_plot.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for plotting enrichment plots. # Author: Sebastian Raschka @@ -63,7 +63,7 @@ def enrichment_plot(df, colors='bgrkcy', markers=' ', linestyles='-', Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/plotting/enrichment_plot/ + http://rasbt.github.io/mlearner/user_guide/plotting/enrichment_plot/ """ if isinstance(df, pd.Series): diff --git a/mlearner/plotting/heatmap.py b/mlearner/plotting/heatmap.py index 65cd937..71b090e 100644 --- a/mlearner/plotting/heatmap.py +++ b/mlearner/plotting/heatmap.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for plotting decision regions of classifiers. # Author: Sebastian Raschka @@ -66,7 +66,7 @@ def heatmap(matrix, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/plotting/heatmap/ + http://rasbt.github.io/mlearner/user_guide/plotting/heatmap/ """ diff --git a/mlearner/plotting/learning_curves.py b/mlearner/plotting/learning_curves.py index a82e334..00039dc 100644 --- a/mlearner/plotting/learning_curves.py +++ b/mlearner/plotting/learning_curves.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for plotting learning curves of classifiers. # Author: Sebastian Raschka @@ -62,7 +62,7 @@ def plot_learning_curves(X_train, y_train, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/plotting/plot_learning_curves/ + http://rasbt.github.io/mlearner/user_guide/plotting/plot_learning_curves/ """ if scoring != 'misclassification error': diff --git a/mlearner/plotting/pca_correlation_graph.py b/mlearner/plotting/pca_correlation_graph.py index 49da665..eb73f6e 100644 --- a/mlearner/plotting/pca_correlation_graph.py +++ b/mlearner/plotting/pca_correlation_graph.py @@ -1,5 +1,5 @@ -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for plotting a PCA correlation circle # File Author: Gabriel Azevedo Ferreira @@ -7,8 +7,8 @@ import numpy as np import matplotlib.pyplot as plt import pandas as pd -from mlearn.externals.adjust_text import adjust_text -from mlearn.feature_extraction import PrincipalComponentAnalysis +from mlearner.externals.adjust_text import adjust_text +from mlearner.feature_extraction import PrincipalComponentAnalysis def corr2_coeff(A, B): @@ -75,7 +75,7 @@ def plot_pca_correlation_graph(X, variables_names, dimensions=(1, 2), Optional. `X_pca` is the matrix of the transformed components from X. If not provided, the function computes PCA automatically using - mlearn.feature_extraction.PrincipalComponentAnalysis + mlearner.feature_extraction.PrincipalComponentAnalysis Expected `n_componentes >= max(dimensions)` explained_variance : 1 dimension np.ndarray, length = n_components diff --git a/mlearner/plotting/plot_confusion_matrix.py b/mlearner/plotting/plot_confusion_matrix.py index 0de85c5..8aec96a 100644 --- a/mlearner/plotting/plot_confusion_matrix.py +++ b/mlearner/plotting/plot_confusion_matrix.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # A function for plotting a confusion matrix. @@ -63,7 +63,7 @@ def plot_confusion_matrix(conf_mat, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/plotting/plot_confusion_matrix/ + http://rasbt.github.io/mlearner/user_guide/plotting/plot_confusion_matrix/ """ if not (show_absolute or show_normed): raise AssertionError('Both show_absolute and show_normed are False') diff --git a/mlearner/plotting/plot_linear_regression.py b/mlearner/plotting/plot_linear_regression.py index 896c60f..a2e119e 100644 --- a/mlearner/plotting/plot_linear_regression.py +++ b/mlearner/plotting/plot_linear_regression.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Function for plotting linear regression fits via scikit-learn and matplotlib. # Author: Sebastian Raschka @@ -52,7 +52,7 @@ def plot_linear_regression(X, y, model=LinearRegression(), Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/plotting/plot_linear_regression/ + http://rasbt.github.io/mlearner/user_guide/plotting/plot_linear_regression/ """ if isinstance(X, list): diff --git a/mlearner/plotting/plot_sequential_feature_selection.py b/mlearner/plotting/plot_sequential_feature_selection.py index c851232..a133ff0 100644 --- a/mlearner/plotting/plot_sequential_feature_selection.py +++ b/mlearner/plotting/plot_sequential_feature_selection.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Algorithm for plotting sequential feature selection. # Author: Sebastian Raschka @@ -22,7 +22,7 @@ def plot_sequential_feature_selection(metric_dict, Parameters ---------- - metric_dict : mlearn.SequentialFeatureSelector.get_metric_dict() object + metric_dict : mlearner.SequentialFeatureSelector.get_metric_dict() object figsize : tuple (default: None) Height and width of the figure kind : str (default: "std_dev") @@ -50,7 +50,7 @@ def plot_sequential_feature_selection(metric_dict, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/plotting/plot_sequential_feature_selection/ + http://rasbt.github.io/mlearner/user_guide/plotting/plot_sequential_feature_selection/ """ diff --git a/mlearner/plotting/remove_chartjunk.py b/mlearner/plotting/remove_chartjunk.py index 995fe3c..dd9f3af 100644 --- a/mlearner/plotting/remove_chartjunk.py +++ b/mlearner/plotting/remove_chartjunk.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A function for removing chart junk from matplotlib plots # Author: Sebastian Raschka @@ -27,7 +27,7 @@ def remove_borders(axes, left=False, bottom=False, right=True, top=True): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/plotting/remove_chartjunk/ + http://rasbt.github.io/mlearner/user_guide/plotting/remove_chartjunk/ """ for ax in axes: diff --git a/mlearner/plotting/scatter.py b/mlearner/plotting/scatter.py index 80bf2ee..a715d89 100644 --- a/mlearner/plotting/scatter.py +++ b/mlearner/plotting/scatter.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Matplotlib wrapper for creating scatterplots from data w. mult. categories. # Author: Sebastian Raschka @@ -48,7 +48,7 @@ def category_scatter(x, y, label_col, data, Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/plotting/category_scatter/ + http://rasbt.github.io/mlearner/user_guide/plotting/category_scatter/ """ fig = plt.figure() diff --git a/mlearner/plotting/scatterplotmatrix.py b/mlearner/plotting/scatterplotmatrix.py index f0feb1f..9ba7b69 100644 --- a/mlearner/plotting/scatterplotmatrix.py +++ b/mlearner/plotting/scatterplotmatrix.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Matplotlib wrapper for generating stacked barplots. # Author: Sebastian Raschka diff --git a/mlearner/plotting/stacked_barplot.py b/mlearner/plotting/stacked_barplot.py index 64cd812..77d3615 100644 --- a/mlearner/plotting/stacked_barplot.py +++ b/mlearner/plotting/stacked_barplot.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Matplotlib wrapper for generating stacked barplots. # Author: Sebastian Raschka @@ -46,7 +46,7 @@ def stacked_barplot(df, bar_width='auto', colors='bgrcky', Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/plotting/stacked_barplot/ + http://rasbt.github.io/mlearner/user_guide/plotting/stacked_barplot/ """ # Setting the positions and width for the bars diff --git a/mlearner/plotting/tests/test_checkerboard.py b/mlearner/plotting/tests/test_checkerboard.py index 0884832..48f99de 100644 --- a/mlearner/plotting/tests/test_checkerboard.py +++ b/mlearner/plotting/tests/test_checkerboard.py @@ -1,10 +1,10 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.plotting import checkerboard_plot +from mlearner.plotting import checkerboard_plot import matplotlib.pyplot as plt import numpy as np diff --git a/mlearner/plotting/tests/test_decision_regions.py b/mlearner/plotting/tests/test_decision_regions.py index 798fd4b..06091fd 100644 --- a/mlearner/plotting/tests/test_decision_regions.py +++ b/mlearner/plotting/tests/test_decision_regions.py @@ -1,14 +1,14 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import numpy as np -from mlearn.utils import assert_raises -from mlearn.plotting import plot_decision_regions -from mlearn.data import iris_data -from mlearn.classifier import SoftmaxRegression +from mlearner.utils import assert_raises +from mlearner.plotting import plot_decision_regions +from mlearner.data import iris_data +from mlearner.classifier import SoftmaxRegression import matplotlib.pyplot as plt plt.switch_backend('agg') diff --git a/mlearner/plotting/tests/test_ecdf.py b/mlearner/plotting/tests/test_ecdf.py index 1b3e8af..652a7db 100644 --- a/mlearner/plotting/tests/test_ecdf.py +++ b/mlearner/plotting/tests/test_ecdf.py @@ -1,11 +1,11 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.data import iris_data -from mlearn.plotting import ecdf +from mlearner.data import iris_data +from mlearner.plotting import ecdf def test_threshold(): diff --git a/mlearner/plotting/tests/test_heatmap.py b/mlearner/plotting/tests/test_heatmap.py index c87d099..e1c2162 100644 --- a/mlearner/plotting/tests/test_heatmap.py +++ b/mlearner/plotting/tests/test_heatmap.py @@ -1,10 +1,10 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.plotting import heatmap +from mlearner.plotting import heatmap import pytest import matplotlib.pyplot as plt import numpy as np diff --git a/mlearner/plotting/tests/test_learning_curves.py b/mlearner/plotting/tests/test_learning_curves.py index 6999e99..01292eb 100644 --- a/mlearner/plotting/tests/test_learning_curves.py +++ b/mlearner/plotting/tests/test_learning_curves.py @@ -1,11 +1,11 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import numpy as np -from mlearn.plotting import plot_learning_curves +from mlearner.plotting import plot_learning_curves from sklearn import datasets from sklearn.tree import DecisionTreeClassifier from sklearn.model_selection import train_test_split diff --git a/mlearner/plotting/tests/test_pca_corr_graph.py b/mlearner/plotting/tests/test_pca_corr_graph.py index e63f884..09e336c 100644 --- a/mlearner/plotting/tests/test_pca_corr_graph.py +++ b/mlearner/plotting/tests/test_pca_corr_graph.py @@ -1,6 +1,6 @@ import pytest -from mlearn.plotting import plot_pca_correlation_graph -from mlearn.data import iris_data +from mlearner.plotting import plot_pca_correlation_graph +from mlearner.data import iris_data from sklearn.decomposition.pca import PCA diff --git a/mlearner/preprocessing/__init__.py b/mlearner/preprocessing/__init__.py index 0b30314..02c544e 100644 --- a/mlearner/preprocessing/__init__.py +++ b/mlearner/preprocessing/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/preprocessing/copy_transformer.py b/mlearner/preprocessing/copy_transformer.py index 87e8e02..f2bdc23 100644 --- a/mlearner/preprocessing/copy_transformer.py +++ b/mlearner/preprocessing/copy_transformer.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A Class that returns a copy of a dataset in a scikit-learn pipeline. # Author: Sebastian Raschka @@ -15,7 +15,7 @@ class CopyTransformer(BaseEstimator): """Transformer that returns a copy of the input array For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/preprocessing/CopyTransformer/ + http://rasbt.github.io/mlearner/user_guide/preprocessing/CopyTransformer/ """ def __init__(self): diff --git a/mlearner/preprocessing/dense_transformer.py b/mlearner/preprocessing/dense_transformer.py index 24fb3ef..eb430fa 100644 --- a/mlearner/preprocessing/dense_transformer.py +++ b/mlearner/preprocessing/dense_transformer.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A class for transforming sparse numpy arrays into dense arrays. # Author: Sebastian Raschka @@ -16,7 +16,7 @@ class DenseTransformer(BaseEstimator): Convert a sparse array into a dense array. For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/preprocessing/DenseTransformer/ + http://rasbt.github.io/mlearner/user_guide/preprocessing/DenseTransformer/ """ diff --git a/mlearner/preprocessing/mean_centering.py b/mlearner/preprocessing/mean_centering.py index 2f65fd6..7cb0b8e 100644 --- a/mlearner/preprocessing/mean_centering.py +++ b/mlearner/preprocessing/mean_centering.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A class to apply column-based mean centering to a dataset. # Author: Sebastian Raschka @@ -22,7 +22,7 @@ class MeanCenterer(object): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/preprocessing/MeanCenterer/ + http://rasbt.github.io/mlearner/user_guide/preprocessing/MeanCenterer/ """ def __init__(self): diff --git a/mlearner/preprocessing/onehot.py b/mlearner/preprocessing/onehot.py index 081a32c..293514a 100644 --- a/mlearner/preprocessing/onehot.py +++ b/mlearner/preprocessing/onehot.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause @@ -29,7 +29,7 @@ def one_hot(y, num_labels='auto', dtype='float'): Examples ---------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/preprocessing/one_hot/ + http://rasbt.github.io/mlearner/user_guide/preprocessing/one_hot/ """ if not (num_labels == 'auto' or isinstance(num_labels, int)): diff --git a/mlearner/preprocessing/scaling.py b/mlearner/preprocessing/scaling.py index d2b4c36..fc2482c 100644 --- a/mlearner/preprocessing/scaling.py +++ b/mlearner/preprocessing/scaling.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Classes for column-based scaling of datasets # Author: Sebastian Raschka @@ -32,7 +32,7 @@ def minmax_scaling(array, columns, min_val=0, max_val=1): Examples ---------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/preprocessing/minmax_scaling/ + http://rasbt.github.io/mlearner/user_guide/preprocessing/minmax_scaling/ """ ary_new = array.astype(float) @@ -98,7 +98,7 @@ def standardize(array, columns=None, ddof=0, return_params=False, params=None): Examples ---------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/preprocessing/standardize/ + http://rasbt.github.io/mlearner/user_guide/preprocessing/standardize/ """ ary_new = array.astype(float) diff --git a/mlearner/preprocessing/shuffle.py b/mlearner/preprocessing/shuffle.py index 7e6836f..cf73ae2 100644 --- a/mlearner/preprocessing/shuffle.py +++ b/mlearner/preprocessing/shuffle.py @@ -1,11 +1,11 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import numpy as np -from mlearn.utils import check_Xy +from mlearner.utils import check_Xy def shuffle_arrays_unison(arrays, random_seed=None): @@ -26,7 +26,7 @@ def shuffle_arrays_unison(arrays, random_seed=None): -------- >>> import numpy as np - >>> from mlearn.preprocessing import shuffle_arrays_unison + >>> from mlearner.preprocessing import shuffle_arrays_unison >>> X1 = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) >>> y1 = np.array([1, 2, 3]) >>> X2, y2 = shuffle_arrays_unison(arrays=[X1, y1], random_seed=3) @@ -35,7 +35,7 @@ def shuffle_arrays_unison(arrays, random_seed=None): >>> For more usage examples, please see - http://rasbt.github.io/mlearn/user_guide/preprocessing/shuffle_arrays_unison/ + http://rasbt.github.io/mlearner/user_guide/preprocessing/shuffle_arrays_unison/ """ if random_seed: np.random.seed(random_seed) @@ -79,7 +79,7 @@ def shuffled_split(X, y, shuffle=True, train_size=0.75, random_seed=None): Target values for testing. For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/preprocessing/shuffled_split/ + http://rasbt.github.io/mlearner/user_guide/preprocessing/shuffled_split/ """ check_Xy(X, y, y_int=False) diff --git a/mlearner/preprocessing/tests/test__scaling__minmax_scaling.py b/mlearner/preprocessing/tests/test__scaling__minmax_scaling.py index 9803e7f..27c938c 100644 --- a/mlearner/preprocessing/tests/test__scaling__minmax_scaling.py +++ b/mlearner/preprocessing/tests/test__scaling__minmax_scaling.py @@ -1,11 +1,11 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.preprocessing import minmax_scaling +from mlearner.preprocessing import minmax_scaling import pandas as pd import numpy as np diff --git a/mlearner/preprocessing/tests/test__scaling__standardizing.py b/mlearner/preprocessing/tests/test__scaling__standardizing.py index 3d3947c..ef2014c 100644 --- a/mlearner/preprocessing/tests/test__scaling__standardizing.py +++ b/mlearner/preprocessing/tests/test__scaling__standardizing.py @@ -1,11 +1,11 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.preprocessing import standardize +from mlearner.preprocessing import standardize import pandas as pd import numpy as np diff --git a/mlearner/preprocessing/tests/test_copy_transformer.py b/mlearner/preprocessing/tests/test_copy_transformer.py index c8085b1..7baaafc 100644 --- a/mlearner/preprocessing/tests/test_copy_transformer.py +++ b/mlearner/preprocessing/tests/test_copy_transformer.py @@ -1,18 +1,18 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import numpy as np -from mlearn.preprocessing import CopyTransformer +from mlearner.preprocessing import CopyTransformer from sklearn.datasets import load_iris from sklearn.pipeline import make_pipeline from sklearn.linear_model import LogisticRegression from sklearn.preprocessing import StandardScaler from sklearn.feature_extraction.text import TfidfTransformer from scipy.sparse import issparse -from mlearn.utils import assert_raises +from mlearner.utils import assert_raises import sys from sklearn.model_selection import GridSearchCV diff --git a/mlearner/preprocessing/tests/test_dense_transformer.py b/mlearner/preprocessing/tests/test_dense_transformer.py index 05eb0f5..aaa5eeb 100644 --- a/mlearner/preprocessing/tests/test_dense_transformer.py +++ b/mlearner/preprocessing/tests/test_dense_transformer.py @@ -1,11 +1,11 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import numpy as np -from mlearn.preprocessing import DenseTransformer +from mlearner.preprocessing import DenseTransformer from sklearn.datasets import load_iris from sklearn.pipeline import make_pipeline from sklearn.ensemble import RandomForestClassifier diff --git a/mlearner/preprocessing/tests/test_mean_centering.py b/mlearner/preprocessing/tests/test_mean_centering.py index 5d58423..90d7e11 100644 --- a/mlearner/preprocessing/tests/test_mean_centering.py +++ b/mlearner/preprocessing/tests/test_mean_centering.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause @@ -7,7 +7,7 @@ import numpy as np import pytest -from mlearn.preprocessing import MeanCenterer +from mlearner.preprocessing import MeanCenterer def test_fitting_error(): diff --git a/mlearner/preprocessing/tests/test_onehot.py b/mlearner/preprocessing/tests/test_onehot.py index f9bf640..ce53202 100644 --- a/mlearner/preprocessing/tests/test_onehot.py +++ b/mlearner/preprocessing/tests/test_onehot.py @@ -1,12 +1,12 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import numpy as np import pytest -from mlearn.preprocessing import one_hot +from mlearner.preprocessing import one_hot def test_default(): diff --git a/mlearner/preprocessing/tests/test_shuffle_shuffle_arrays_unison.py b/mlearner/preprocessing/tests/test_shuffle_shuffle_arrays_unison.py index 7b64e62..06d06ff 100644 --- a/mlearner/preprocessing/tests/test_shuffle_shuffle_arrays_unison.py +++ b/mlearner/preprocessing/tests/test_shuffle_shuffle_arrays_unison.py @@ -1,12 +1,12 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import numpy as np -from mlearn.preprocessing import shuffle_arrays_unison +from mlearner.preprocessing import shuffle_arrays_unison def test_shuffle_arrays_unison(): diff --git a/mlearner/preprocessing/tests/test_transactionencoder.py b/mlearner/preprocessing/tests/test_transactionencoder.py index 897ccba..caf16ad 100644 --- a/mlearner/preprocessing/tests/test_transactionencoder.py +++ b/mlearner/preprocessing/tests/test_transactionencoder.py @@ -1,14 +1,14 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import numpy as np from scipy.sparse import csr_matrix -from mlearn.preprocessing import TransactionEncoder +from mlearner.preprocessing import TransactionEncoder from sklearn.base import clone -from mlearn.utils import assert_raises +from mlearner.utils import assert_raises dataset = [['Apple', 'Beer', 'Rice', 'Chicken'], diff --git a/mlearner/preprocessing/transactionencoder.py b/mlearner/preprocessing/transactionencoder.py index d96a6f8..0e02afd 100644 --- a/mlearner/preprocessing/transactionencoder.py +++ b/mlearner/preprocessing/transactionencoder.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause @@ -24,7 +24,7 @@ class TransactionEncoder(BaseEstimator, TransformerMixin): Examples ------------ For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/preprocessing/TransactionEncoder/ + http://rasbt.github.io/mlearner/user_guide/preprocessing/TransactionEncoder/ """ def __init__(self): diff --git a/mlearner/regressor/__init__.py b/mlearner/regressor/__init__.py index 5501c4b..7635a1c 100644 --- a/mlearner/regressor/__init__.py +++ b/mlearner/regressor/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/regressor/linear_regression.py b/mlearner/regressor/linear_regression.py index 8686efc..76e2e8f 100644 --- a/mlearner/regressor/linear_regression.py +++ b/mlearner/regressor/linear_regression.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Base Regressor (Regressor Parent Class) # Author: Sebastian Raschka @@ -63,7 +63,7 @@ class LinearRegression(_BaseModel, _IterativeModel, _Regressor): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/regressor/LinearRegression/ + http://rasbt.github.io/mlearner/user_guide/regressor/LinearRegression/ """ def __init__(self, method='direct', eta=0.01, epochs=50, diff --git a/mlearner/regressor/stacking_cv_regression.py b/mlearner/regressor/stacking_cv_regression.py index b64a5a9..f3dcd24 100644 --- a/mlearner/regressor/stacking_cv_regression.py +++ b/mlearner/regressor/stacking_cv_regression.py @@ -4,7 +4,7 @@ # dnc1994.com/2016/05/rank-10-percent-in-first-kaggle-competition-en/#Stacking # # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # An ensemble-learning meta-regressor for out-of-fold stacking regression # Authors: @@ -30,7 +30,7 @@ class StackingCVRegressor(_BaseXComposition, RegressorMixin, TransformerMixin): """A 'Stacking Cross-Validation' regressor for scikit-learn estimators. - New in mlearn v0.7.0 + New in mlearner v0.7.0 Parameters ---------- @@ -109,7 +109,7 @@ class StackingCVRegressor(_BaseXComposition, RegressorMixin, TransformerMixin): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/regressor/StackingCVRegressor/ + http://rasbt.github.io/mlearner/user_guide/regressor/StackingCVRegressor/ """ def __init__(self, regressors, meta_regressor, cv=5, diff --git a/mlearner/regressor/stacking_regression.py b/mlearner/regressor/stacking_regression.py index 93ff694..da07e38 100644 --- a/mlearner/regressor/stacking_regression.py +++ b/mlearner/regressor/stacking_regression.py @@ -1,7 +1,7 @@ # Stacking regressor # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # An ensemble-learning meta-regressor for stacking regression # Author: Sebastian Raschka @@ -81,7 +81,7 @@ class StackingRegressor(_BaseXComposition, RegressorMixin, TransformerMixin): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/regressor/StackingRegressor/ + http://rasbt.github.io/mlearner/user_guide/regressor/StackingRegressor/ """ def __init__(self, regressors, meta_regressor, verbose=0, diff --git a/mlearner/regressor/tests/test_linear_regression.py b/mlearner/regressor/tests/test_linear_regression.py index bdf6849..217a2d9 100644 --- a/mlearner/regressor/tests/test_linear_regression.py +++ b/mlearner/regressor/tests/test_linear_regression.py @@ -1,12 +1,12 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.regressor import LinearRegression -from mlearn.data import boston_housing_data +from mlearner.regressor import LinearRegression +from mlearner.data import boston_housing_data import numpy as np from numpy.testing import assert_almost_equal from sklearn.base import clone diff --git a/mlearner/regressor/tests/test_stacking_cv_regression.py b/mlearner/regressor/tests/test_stacking_cv_regression.py index 065a00e..f2a5d27 100644 --- a/mlearner/regressor/tests/test_stacking_cv_regression.py +++ b/mlearner/regressor/tests/test_stacking_cv_regression.py @@ -2,7 +2,7 @@ # # Sebastian Raschka 2014-2020 # -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Eike Dehling # # License: BSD 3 clause @@ -11,9 +11,9 @@ import pytest import numpy as np from scipy import sparse -from mlearn.externals.estimator_checks import NotFittedError -from mlearn.regressor import StackingCVRegressor -from mlearn.utils import assert_raises +from mlearner.externals.estimator_checks import NotFittedError +from mlearner.regressor import StackingCVRegressor +from mlearner.utils import assert_raises from sklearn.linear_model import LinearRegression from sklearn.linear_model import Ridge, Lasso from sklearn.svm import SVR diff --git a/mlearner/regressor/tests/test_stacking_regression.py b/mlearner/regressor/tests/test_stacking_regression.py index 15f2ece..376785e 100644 --- a/mlearner/regressor/tests/test_stacking_regression.py +++ b/mlearner/regressor/tests/test_stacking_regression.py @@ -1,14 +1,14 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause import pytest import numpy as np -from mlearn.externals.estimator_checks import NotFittedError -from mlearn.utils import assert_raises -from mlearn.regressor import StackingRegressor +from mlearner.externals.estimator_checks import NotFittedError +from mlearner.utils import assert_raises +from mlearner.regressor import StackingRegressor from sklearn.linear_model import LinearRegression from sklearn.linear_model import Ridge from sklearn.linear_model import Lasso diff --git a/mlearner/text/__init__.py b/mlearner/text/__init__.py index 2dd026b..47f95c8 100644 --- a/mlearner/text/__init__.py +++ b/mlearner/text/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/text/names.py b/mlearner/text/names.py index e672dbb..10fe425 100644 --- a/mlearner/text/names.py +++ b/mlearner/text/names.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Function for processing names. # Author: Sebastian Raschka @@ -44,7 +44,7 @@ def generalize_names(name, output_sep=' ', firstname_output_letters=1): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/text/generalize_names/ + http://rasbt.github.io/mlearner/user_guide/text/generalize_names/ """ # set first and last name positions @@ -98,7 +98,7 @@ def generalize_names(name, output_sep=' ', firstname_output_letters=1): def generalize_names_duplcheck(df, col_name): """ Generalizes names and removes duplicates. - Description : Applies mlearn.text.generalize_names to a DataFrame + Description : Applies mlearner.text.generalize_names to a DataFrame with 1 first name letter by default and uses more first name letters if duplicates are detected. @@ -120,7 +120,7 @@ def generalize_names_duplcheck(df, col_name): Examples ----------- For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/text/generalize_names_duplcheck/ + http://rasbt.github.io/mlearner/user_guide/text/generalize_names_duplcheck/ """ df_new = df.copy() diff --git a/mlearner/text/tests/test_generalize_names.py b/mlearner/text/tests/test_generalize_names.py index 9531930..e549818 100644 --- a/mlearner/text/tests/test_generalize_names.py +++ b/mlearner/text/tests/test_generalize_names.py @@ -4,7 +4,7 @@ from nose.plugins.skip import SkipTest raise SkipTest -from mlearn.text import generalize_names +from mlearner.text import generalize_names def test_generalize_names(): diff --git a/mlearner/text/tests/test_generalize_names_duplcheck.py b/mlearner/text/tests/test_generalize_names_duplcheck.py index 13dd554..8f22d82 100644 --- a/mlearner/text/tests/test_generalize_names_duplcheck.py +++ b/mlearner/text/tests/test_generalize_names_duplcheck.py @@ -5,8 +5,8 @@ raise SkipTest from data_names import csv -from mlearn.text import generalize_names_duplcheck -from mlearn.text import generalize_names +from mlearner.text import generalize_names_duplcheck +from mlearner.text import generalize_names from io import StringIO import pandas as pd diff --git a/mlearner/text/tests/test_tokenizer.py b/mlearner/text/tests/test_tokenizer.py index 8a97b3b..b58449a 100644 --- a/mlearner/text/tests/test_tokenizer.py +++ b/mlearner/text/tests/test_tokenizer.py @@ -1,5 +1,5 @@ -from mlearn.text import tokenizer_words_and_emoticons -from mlearn.text import tokenizer_emoticons +from mlearner.text import tokenizer_words_and_emoticons +from mlearner.text import tokenizer_emoticons def test_tokenizer_words_and_emoticons_1(): diff --git a/mlearner/text/tokenizer.py b/mlearner/text/tokenizer.py index c2c1647..27c220b 100644 --- a/mlearner/text/tokenizer.py +++ b/mlearner/text/tokenizer.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # Functions for tokenizing text data. # Author: Sebastian Raschka @@ -18,7 +18,7 @@ def tokenizer_words_and_emoticons(text): ['this', 'is', 'a', 'test', ':)', ':(', ':-)'] For more usage examples, please see - http://rasbt.github.io/mlearn/user_guide/text/tokenizer_words_and_emoticons/ + http://rasbt.github.io/mlearner/user_guide/text/tokenizer_words_and_emoticons/ """ text = re.sub('<[^>]*>', '', text) @@ -36,7 +36,7 @@ def tokenizer_emoticons(text): [':)', ':(', ':-)'] For usage examples, please see - http://rasbt.github.io/mlearn/user_guide/text/tokenizer_emoticons/ + http://rasbt.github.io/mlearner/user_guide/text/tokenizer_emoticons/ """ text = re.sub('<[^>]*>', '', text) diff --git a/mlearner/utils/__init__.py b/mlearner/utils/__init__.py index f06d45b..49cef1a 100644 --- a/mlearner/utils/__init__.py +++ b/mlearner/utils/__init__.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause diff --git a/mlearner/utils/checking.py b/mlearner/utils/checking.py index 4abe9ac..9ea0e7c 100644 --- a/mlearner/utils/checking.py +++ b/mlearner/utils/checking.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A counter class for printing the progress of an iterator. # Author: Sebastian Raschka diff --git a/mlearner/utils/counter.py b/mlearner/utils/counter.py index 1c3aab3..b0648cf 100644 --- a/mlearner/utils/counter.py +++ b/mlearner/utils/counter.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A counter class for printing the progress of an iterator. # Author: Sebastian Raschka @@ -53,7 +53,7 @@ class Counter(object): The counter was last updated 0 seconds ago. For more usage examples, please see - http://rasbt.github.io/mlearn/user_guide/utils/Counter/ + http://rasbt.github.io/mlearner/user_guide/utils/Counter/ """ def __init__(self, stderr=False, start_newline=True, precision=0, diff --git a/mlearner/utils/testing.py b/mlearner/utils/testing.py index 1cd7b5c..f5731a7 100644 --- a/mlearner/utils/testing.py +++ b/mlearner/utils/testing.py @@ -1,5 +1,5 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # # A counter class for printing the progress of an iterator. # Author: Sebastian Raschka diff --git a/mlearner/utils/tests/test_checking_inputs.py b/mlearner/utils/tests/test_checking_inputs.py index 9ef745a..e57d0ba 100644 --- a/mlearner/utils/tests/test_checking_inputs.py +++ b/mlearner/utils/tests/test_checking_inputs.py @@ -1,11 +1,11 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.utils import assert_raises -from mlearn.utils import check_Xy, format_kwarg_dictionaries +from mlearner.utils import assert_raises +from mlearner.utils import check_Xy, format_kwarg_dictionaries import numpy as np import sys import os diff --git a/mlearner/utils/tests/test_counter.py b/mlearner/utils/tests/test_counter.py index ebbc901..201a074 100644 --- a/mlearner/utils/tests/test_counter.py +++ b/mlearner/utils/tests/test_counter.py @@ -1,10 +1,10 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.utils import Counter +from mlearner.utils import Counter def test_counter(): diff --git a/mlearner/utils/tests/test_testing.py b/mlearner/utils/tests/test_testing.py index 4673fdc..9f1e1ca 100644 --- a/mlearner/utils/tests/test_testing.py +++ b/mlearner/utils/tests/test_testing.py @@ -1,10 +1,10 @@ # Sebastian Raschka 2014-2020 -# mlearn Machine Learning Library Extensions +# mlearner Machine Learning Library Extensions # Author: Sebastian Raschka # # License: BSD 3 clause -from mlearn.utils import assert_raises +from mlearner.utils import assert_raises def test_without_message(): diff --git a/setup.py b/setup.py index ec33107..2b0445f 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,9 @@ from distutils.core import setup from os.path import realpath, dirname, join from setuptools import setup, find_packages -import mlearn +import mlearner -VERSION = mlearn.__version__ +VERSION = mlearner.__version__ PROJECT_ROOT = dirname(realpath(__file__)) REQUIREMENTS_FILE = join(PROJECT_ROOT, 'requirements.txt') @@ -15,15 +15,15 @@ setup( - name = 'mlearn', # How you named your package folder (MyLib) - packages = ['mlearn'], # Chose the same as "name" + name = 'mlearner', # How you named your package folder (MyLib) + packages = ['mlearner'], # Chose the same as "name" version = VERSION, # Start with a small number and increase it with every change you make license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository description = 'Machine Learning Library Extensions', # Give a short description about your library author = 'Jaime Sendra', # Type in your name author_email = 'jaisenberafel@gmail.com', # Type in your E-Mail - url = 'https://github.com/jaisenbe58r/MLearn', # Provide either the link to your github or to your website - download_url = 'https://github.com/jaisenbe58r/MLearn/archive/v0.0.2.tar.gz', # I explain this later on + url = 'https://github.com/jaisenbe58r/mlearnerer', # Provide either the link to your github or to your website + download_url = 'https://github.com/jaisenbe58r/mlearnerer/archive/v0.0.2.tar.gz', # I explain this later on keywords = ['SOME', 'MEANINGFULL', 'KEYWORDS'], # Keywords that define your package best package_data={'': [ 'README.md', @@ -57,24 +57,24 @@ A library of Python tools and extensions for data science. Contact ============= - If you have any questions or comments about mlearn, + If you have any questions or comments about mlearner, please feel free to contact me via eMail: mail@sebastianraschka.com or Twitter: https://twitter.com/jaisenbe58r - This project is hosted at https://github.com/jaisenbe58r/MLearn - The documentation can be found at http://jaisenbe58r.github.io/mlearn/ + This project is hosted at https://github.com/jaisenbe58r/mlearnerer + The documentation can be found at http://jaisenbe58r.github.io/mlearner/ """) # setup( -# name = 'mlearn', # How you named your package folder (MyLib) -# packages = ['mlearn'], # Chose the same as "name" +# name = 'mlearner', # How you named your package folder (MyLib) +# packages = ['mlearner'], # Chose the same as "name" # version = '0.1', # Start with a small number and increase it with every change you make # license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository # description = 'TYPE YOUR DESCRIPTION HERE', # Give a short description about your library # author = 'YOUR NAME', # Type in your name # author_email = 'jaisenberafel@gmail.com', # Type in your E-Mail -# url = 'https://github.com/jaisenbe58r/MLearn', # Provide either the link to your github or to your website -# download_url = 'https://github.com/jaisenbe58r/MLearn/archive/v0.0.1.tar.gz', # I explain this later on +# url = 'https://github.com/jaisenbe58r/mlearnerer', # Provide either the link to your github or to your website +# download_url = 'https://github.com/jaisenbe58r/mlearnerer/archive/v0.0.1.tar.gz', # I explain this later on # keywords = ['SOME', 'MEANINGFULL', 'KEYWORDS'], # Keywords that define your package best # install_requires=[ # I get to this in a second # 'validators',