Skip to content

added auto shapes#175

Open
KhrulkovV wants to merge 3 commits into
developfrom
auto-tt-shapes
Open

added auto shapes#175
KhrulkovV wants to merge 3 commits into
developfrom
auto-tt-shapes

Conversation

@KhrulkovV
Copy link
Copy Markdown
Collaborator

No description provided.

@KhrulkovV KhrulkovV requested a review from Bihaqo January 29, 2019 10:32
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-1.09%) to 92.835% when pulling f7c5b88 on auto-tt-shapes into 28acf14 on develop.

1 similar comment
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-1.09%) to 92.835% when pulling f7c5b88 on auto-tt-shapes into 28acf14 on develop.

Copy link
Copy Markdown
Owner

@Bihaqo Bihaqo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

I think we at least need a test that the code runs, if not that it trains to a reasonable performance.

Comment thread t3f/nn.py
CRITERIONS = ['entropy', 'var']


def _to_list(p):
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docstring here and everywhere with the style

"""One line TLDR.
(optional details)
Args:
  arg1: ...
Returns:
  lorem ipsum
"""

Comment thread t3f/nn.py

def _roundrobin(*iterables):
"roundrobin('ABC', 'D', 'EF') --> A D E B F C"
# Recipe credited to George Sakkis
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you obeying the license of this code if it is not you who wrote it?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread t3f/nn.py Outdated
_counter = count(0)

def __init__(self, input_dims, output_dims, tt_rank=2,
def __init__(self, in_dim=None, out_dim=None, d=None, mode='mixed',
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the naming in_dim vs input_dims. Maybe in_dim vs in_shape?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, do you actually need in_dims? Can you use just "units" like keras does?

Comment thread t3f/nn.py
return _to_list(factorint(p))


def auto_shape(n, d=3, criterion='entropy', mode='ascending'):
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have default d here but not in KerasDense. Is it intentional?

Comment thread t3f/nn.py
return list(factors[i])


def suggest_shape(n, d=3, criterion='entropy', mode='ascending'):
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants