Skip to content

Commit

Permalink
Merge pull request #906 from VesnaT/table_name
Browse files Browse the repository at this point in the history
OWLinearRegression: Set coefficient table name to 'coefficients'
  • Loading branch information
kernc committed Dec 8, 2015
2 parents be4d33b + 554919e commit f4e00d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Orange/data/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def __init__(self, domain):
# noinspection PyPep8Naming
class Table(MutableSequence, Storage):
__file__ = None
name = "untitled"

@property
def columns(self):
Expand Down
1 change: 1 addition & 0 deletions Orange/widgets/regression/owlinearregression.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def commit(self):
names = ["intercept"] + \
[attr.name for attr in predictor.domain.attributes]
coef_table = Table(domain, list(zip(coefs, names)))
coef_table.name = "coefficients"

self.send("Linear Regression", learner)
self.send("Model", predictor)
Expand Down

0 comments on commit f4e00d1

Please sign in to comment.