Skip to content
Open
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
4 changes: 2 additions & 2 deletions docs/source/shallow_learning_methods/logistic_regression.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ Example Usage
dataset = dataset.to_numpy()
attributes = dataset[:, 0:5] # Columns 1-5 contain our features
labels = dataset[:, 5] # Column 6 contains our class labels
log_model = LinRegression(attributes, labels)
log_model = LogRegression(attributes, labels)
log_model.run() # This will trigger the command-line interface for parameter input

new_data_X = read_csv('/path/to/new_data_X.csv')
new_data_X = new_data_X.to_numpy()
classifications = log_model.predict(new_data_X) # This will return and output classifications for new_data_X
classifications = log_model.predict(new_data_X) # This will return and output classifications for new_data_X