Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
`Large Margin Classification Using the Perceptron Algorithm
<http://citeseer.ist.psu.edu/viewdoc/summary?doi=10.1.1.48.8200>`_

`Discriminative Training Methods for Hidden Markov Models
`Discriminative Training Methods for Hidden Markov Models
<http://citeseer.ist.psu.edu/viewdoc/summary?doi=10.1.1.18.6725>`_


Expand Down Expand Up @@ -89,4 +89,4 @@
Example:
.. literalinclude:: /../nimbusml/examples/AveragedPerceptronBinaryClassifier.py
:language: python
"""
"""
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class AveragedPerceptronBinaryClassifier(
`Large Margin Classification Using the Perceptron Algorithm
<http://citeseer.ist.psu.edu/viewdoc/summary?doi=10.1.1.48.8200>`_

`Discriminative Training Methods for Hidden Markov Models
`Discriminative Training Methods for Hidden Markov Models
<http://citeseer.ist.psu.edu/viewdoc/summary?doi=10.1.1.18.6725>`_


Expand Down
21 changes: 12 additions & 9 deletions src/python/nimbusml/internal/utils/data_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,19 +682,22 @@ def read_schema(*data, **options):
"""
Infers the schema of a data view.

:param data: features, labels, weights, groups
:param data: features, labels, weights, groups
:param collapse: (False by default), collapse columns for of the same type
if it follows *read_csv* function. Use internal structure of a
dataframe. If ``collapse* == 'all'``,
the method collapses all columns not specified in parameter *names*.
:param sep: string value of file seperation character (for example: ',')
:param header: whether the data has a header row; defaults to True
:param dtype: change dtype of specific columns; takes dictionary of column
names mapped to desired dtype
:param numeric_dtype: if not None, changes all numeric types into this type
:param names: specify new names for columns; takes dictionary of column
index mapped to desired name
:param ind: first column index (in case DataFrame are concatenated)
:param tool: `'pandas'` or `'nimbusml'`
:param options: additional options
:return: schema as a string

Additional options:

* collapse: (False by default), collapse columns for of the same type
if it follows *read_csv* function. Use internal structure of a
dataframe. If ``collapse* == 'all'``,
the method collapses all columns not specified in parameter *names*.
* numeric_dtype: if not None, changes all numeric types into this type
"""
if isinstance(options.get('dtype', None), dict) and \
options.get('numeric_dtype', None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class AveragedPerceptronBinaryClassifier(
`Large Margin Classification Using the Perceptron Algorithm
<http://citeseer.ist.psu.edu/viewdoc/summary?doi=10.1.1.48.8200>`_

`Discriminative Training Methods for Hidden Markov Models
`Discriminative Training Methods for Hidden Markov Models
<http://citeseer.ist.psu.edu/viewdoc/summary?doi=10.1.1.18.6725>`_


Expand Down