question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Target parameter required

See original GitHub issue

In BaseWrapper.fit, the targets y are required.

https://github.com/adriangb/scikeras/blob/9f633f5c21a45b43986a8d779c3ef9e3005038bb/scikeras/wrappers.py#L556

This poses challenges for models that don’t require targets (like autoencoders).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
adriangbcommented, Nov 5, 2020

#123 will enable the following behavior:

class AutoEncoderTransformer(BaseWrapper, TransformerMixin):
    def transform(self, X):
        return self.predict(X)

tf = AutoEncoderTransformer(model=...)
encoded = tf.fit_transform(X)

Which is a pretty nice way to bring this behavior into the sklearn ecosystem IMO.

0reactions
adriangbcommented, Nov 5, 2020

I was wrong. PR implementing y=None is in #123

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I set the -target parameter for package installs in OS X?
I want to install it with the installer command. The installer command requires a -target parameter and it is the part I am...
Read more >
macos - What is the target parameter mean in OSX installer?
The target refers to the volume (disk), so / refers to the main disk, however it doesn't specify where on that disk.
Read more >
'Target' parameter required when calling action
I need to create a connection between a contact and an account when the account is updated so there is a record of...
Read more >
How do you install a .mpkg through Terminal - OS X (10.0 - 10.4)
"Error -target parameter required to install". The package is store in the Documents folder, it seems that the command cannot locate it.
Read more >
Create a parameter in the target - IBM
To specify that users must select a value, click Required. If a value for the target parameter is not passed, users are prompted...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found