Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixed #972 #973

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 21, 2018
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
8 changes: 5 additions & 3 deletions learning.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,13 @@ def __init__(self, examples=None, attrs=None, attrnames=None, target=-1,
# Initialize .examples from string or list or data directory
if isinstance(examples, str):
self.examples = parse_csv(examples)
elif examples is None:
self.examples = parse_csv(open_data(name + '.csv').read())
else:
self.examples = examples or parse_csv(open_data(name + '.csv').read())
self.examples = examples

# Attrs are the indices of examples, unless otherwise stated.
if self.examples and not attrs:
# Attrs are the indices of examples, unless otherwise stated.
if self.examples is not None and attrs is None:
attrs = list(range(len(self.examples[0])))

self.attrs = attrs
Expand Down
90 changes: 40 additions & 50 deletions learning_apps.ipynb

Large diffs are not rendered by default.