From 74bffe6607374b8d3a5239a2aa211c64dd56366b Mon Sep 17 00:00:00 2001 From: Sam Waterbury Date: Mon, 19 Nov 2018 18:50:59 -0600 Subject: [PATCH 1/3] Updated partial_fit documentation --- sklearn/neural_network/multilayer_perceptron.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sklearn/neural_network/multilayer_perceptron.py b/sklearn/neural_network/multilayer_perceptron.py index a8fcc8e11cdb9..85ba20b648422 100644 --- a/sklearn/neural_network/multilayer_perceptron.py +++ b/sklearn/neural_network/multilayer_perceptron.py @@ -619,7 +619,9 @@ def fit(self, X, y): @property def partial_fit(self): - """Fit the model to data matrix X and target y. + """Fit the model to data matrix X and target y for a single iteration. + + Reuses the previously fitted solution as initialization if is exists. Parameters ---------- @@ -978,7 +980,9 @@ def fit(self, X, y): @property def partial_fit(self): - """Fit the model to data matrix X and target y. + """Fit the model to data matrix X and target y for a single iteration. + + Reuses the previously fitted solution as initialization if is exists. Parameters ---------- From c0f84992b194f65f872472c7cf58ac19bcf47750 Mon Sep 17 00:00:00 2001 From: Sam Waterbury Date: Tue, 20 Nov 2018 17:50:44 -0600 Subject: [PATCH 2/3] Changed partial_fit description --- sklearn/neural_network/multilayer_perceptron.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/sklearn/neural_network/multilayer_perceptron.py b/sklearn/neural_network/multilayer_perceptron.py index 85ba20b648422..47737782074ce 100644 --- a/sklearn/neural_network/multilayer_perceptron.py +++ b/sklearn/neural_network/multilayer_perceptron.py @@ -619,9 +619,8 @@ def fit(self, X, y): @property def partial_fit(self): - """Fit the model to data matrix X and target y for a single iteration. - - Reuses the previously fitted solution as initialization if is exists. + """Fit the model to data matrix X and target y for a single + optimization iteration, starting from the previous state. Parameters ---------- @@ -980,9 +979,8 @@ def fit(self, X, y): @property def partial_fit(self): - """Fit the model to data matrix X and target y for a single iteration. - - Reuses the previously fitted solution as initialization if is exists. + """Fit the model to data matrix X and target y for a single + optimization iteration, starting from the previous state. Parameters ---------- From 6dac2c34d0664506ff255c94bb06e666c46f9eaa Mon Sep 17 00:00:00 2001 From: Sam Waterbury Date: Wed, 21 Nov 2018 12:29:33 -0600 Subject: [PATCH 3/3] Update doc again to fit in one line --- sklearn/neural_network/multilayer_perceptron.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sklearn/neural_network/multilayer_perceptron.py b/sklearn/neural_network/multilayer_perceptron.py index 47737782074ce..f05c15c4ea2f3 100644 --- a/sklearn/neural_network/multilayer_perceptron.py +++ b/sklearn/neural_network/multilayer_perceptron.py @@ -619,8 +619,7 @@ def fit(self, X, y): @property def partial_fit(self): - """Fit the model to data matrix X and target y for a single - optimization iteration, starting from the previous state. + """Update the model with a single iteration over the given data. Parameters ---------- @@ -979,8 +978,7 @@ def fit(self, X, y): @property def partial_fit(self): - """Fit the model to data matrix X and target y for a single - optimization iteration, starting from the previous state. + """Update the model with a single iteration over the given data. Parameters ----------