Skip to content

Commit 9023559

Browse files
authored
update docstring (#151)
1 parent 57efefd commit 9023559

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

pymilo/chains/clustering_chain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def transport_clusterer(request, command, is_inner_model=False):
5151
:type request: any object
5252
:param command: command to specify whether the request should be serialized or deserialized
5353
:type command: transporter.Command
54-
:param is_inner_model: determines whether it is an inner linear model of a super ml model
54+
:param is_inner_model: determines whether it is an inner model of a super ml model
5555
:type is_inner_model: boolean
5656
:return: the transported request as a json string or sklearn clustering model
5757
"""
@@ -105,7 +105,7 @@ def deserialize_clusterer(clusterer, is_inner_model=False):
105105
106106
:param clusterer: given json string of a clustering model to get deserialized to associated sklearn clustering model
107107
:type clusterer: obj
108-
:param is_inner_model: determines whether it is an inner linear model of a super ml model
108+
:param is_inner_model: determines whether it is an inner model of a super ml model
109109
:type is_inner_model: boolean
110110
:return: associated sklearn clustering model
111111
"""

pymilo/chains/decision_tree_chain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def transport_decision_tree(request, command, is_inner_model=False):
4646
:type request: any object
4747
:param command: command to specify whether the request should be serialized or deserialized
4848
:type command: transporter.Command
49-
:param is_inner_model: determines whether it is an inner linear model of a super ml model
49+
:param is_inner_model: determines whether it is an inner model of a super ml model
5050
:type is_inner_model: boolean
5151
:return: the transported request as a json string or sklearn decision tree model
5252
"""
@@ -100,7 +100,7 @@ def deserialize_decision_tree(decision_tree, is_inner_model=False):
100100
101101
:param decision_tree: given json string of a decision tree model to get deserialized to associated sklearn decision tree model
102102
:type decision_tree: obj
103-
:param is_inner_model: determines whether it is an inner linear model of a super ml model
103+
:param is_inner_model: determines whether it is an inner model of a super ml model
104104
:type is_inner_model: boolean
105105
:return: associated sklearn decision tree model
106106
"""

pymilo/chains/ensemble_chain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def transport_ensemble(request, command, is_inner_model=False):
7676
:type request: any object
7777
:param command: command to specify whether the request should be serialized or deserialized
7878
:type command: transporter.Command
79-
:param is_inner_model: determines whether it is an inner ensemble model of a super ml model
79+
:param is_inner_model: determines whether it is an inner model of a super ml model
8080
:type is_inner_model: boolean
8181
:return: the transported request as a json string or sklearn ensemble model
8282
"""

pymilo/chains/linear_model_chain.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def transport_linear_model(request, command, is_inner_model=False):
5858
:type request: any object
5959
:param command: command to specify whether the request should be serialized or deserialized
6060
:type command: transporter.Command
61-
:param is_inner_model: determines whether it is an inner linear model of a super ml model
61+
:param is_inner_model: determines whether it is an inner model of a super ml model
6262
:type is_inner_model: boolean
63-
:return: the transported request as a json string or sklearn linear model
63+
:return: the transported request as a json string or sklearn model
6464
"""
6565
if not is_inner_model:
6666
validate_input(request, command)
@@ -119,7 +119,7 @@ def deserialize_linear_model(linear_model, is_inner_model):
119119
120120
:param linear_model: given json string of a linear model to get deserialized to associated sklearn linear model
121121
:type linear_model: obj
122-
:param is_inner_model: determines whether it is an inner linear model of a super ml model
122+
:param is_inner_model: determines whether it is an inner model of a super ml model
123123
:type is_inner_model: boolean
124124
:return: associated sklearn linear model
125125
"""

pymilo/chains/naive_bayes_chain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def transport_naive_bayes(request, command, is_inner_model=False):
4141
:type request: any object
4242
:param command: command to specify whether the request should be serialized or deserialized
4343
:type command: transporter.Command
44-
:param is_inner_model: determines whether it is an inner linear model of a super ml model
44+
:param is_inner_model: determines whether it is an inner model of a super ml model
4545
:type is_inner_model: boolean
4646
:return: the transported request as a json string or sklearn naive bayes model
4747
"""
@@ -95,7 +95,7 @@ def deserialize_naive_bayes(naive_bayes, is_inner_model=False):
9595
9696
:param naive bayes: given json string of a naive bayes model to get deserialized to associated sklearn naive bayes model
9797
:type naive bayes: obj
98-
:param is_inner_model: determines whether it is an inner linear model of a super ml model
98+
:param is_inner_model: determines whether it is an inner model of a super ml model
9999
:type is_inner_model: boolean
100100
:return: associated sklearn naive bayes model
101101
"""

pymilo/chains/neighbours_chain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def transport_neighbor(request, command, is_inner_model=False):
4343
:type request: any object
4444
:param command: command to specify whether the request should be serialized or deserialized
4545
:type command: transporter.Command
46-
:param is_inner_model: determines whether it is an inner linear model of a super ml model
46+
:param is_inner_model: determines whether it is an inner model of a super ml model
4747
:type is_inner_model: boolean
4848
:return: the transported request as a json string or sklearn neighbors model
4949
"""
@@ -97,7 +97,7 @@ def deserialize_neighbor(neighbor, is_inner_model=False):
9797
9898
:param neighbor: given json string of a neighbor model to get deserialized to associated sklearn neighbors model
9999
:type neighbor: obj
100-
:param is_inner_model: determines whether it is an inner linear model of a super ml model
100+
:param is_inner_model: determines whether it is an inner model of a super ml model
101101
:type is_inner_model: boolean
102102
:return: associated sklearn neighbor model
103103
"""

pymilo/chains/neural_network_chain.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
"""PyMilo chain for linear models."""
2+
"""PyMilo chain for neural network models."""
33
from ..transporters.transporter import Command
44

55
from ..transporters.general_data_structure_transporter import GeneralDataStructureTransporter
@@ -49,7 +49,7 @@ def transport_neural_network(request, command, is_inner_model=False):
4949
:type request: any object
5050
:param command: command to specify whether the request should be serialized or deserialized
5151
:type command: transporter.Command
52-
:param is_inner_model: determines whether it is an inner linear model of a super ml model
52+
:param is_inner_model: determines whether it is an inner model of a super ml model
5353
:type is_inner_model: boolean
5454
:return: the transported request as a json string or sklearn neural network model
5555
"""
@@ -103,7 +103,7 @@ def deserialize_neural_network(neural_network, is_inner_model=False):
103103
104104
:param neural_network: given json string of a neural network model to get deserialized to associated sklearn NN model
105105
:type neural_network: obj
106-
:param is_inner_model: determines whether it is an inner linear model of a super ml model
106+
:param is_inner_model: determines whether it is an inner model of a super ml model
107107
:type is_inner_model: boolean
108108
:return: associated sklearn NN model
109109
"""

pymilo/chains/svm_chain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def transport_svm(request, command, is_inner_model=False):
4343
:type request: any object
4444
:param command: command to specify whether the request should be serialized or deserialized
4545
:type command: transporter.Command
46-
:param is_inner_model: determines whether it is an inner linear model of a super ml model
46+
:param is_inner_model: determines whether it is an inner model of a super ml model
4747
:type is_inner_model: boolean
4848
:return: the transported request as a json string or sklearn svm model
4949
"""
@@ -97,7 +97,7 @@ def deserialize_svm(svm, is_inner_model=False):
9797
9898
:param svm: given json string of a svm model to get deserialized to associated sklearn svm model
9999
:type svm: obj
100-
:param is_inner_model: determines whether it is an inner linear model of a super ml model
100+
:param is_inner_model: determines whether it is an inner model of a super ml model
101101
:type is_inner_model: boolean
102102
:return: associated sklearn svm model
103103
"""

0 commit comments

Comments
 (0)