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.

Improve handling of missing optimizer in NN classifier/regressor

See original GitHub issue

What is the expected enhancement?

When an optimizer is not passed to neural network classifier/regressor an exception occurs: AttributeError: 'NoneType' object has no attribute 'optimize'. In this issue I suggest to improve this behavior and either raise a more meaningful exception or introduce a default optimizer, e.g. Cobyla or SLSQP.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

2reactions
woodsp-ibmcommented, Jun 24, 2021

There is information around contributing here https://github.com/Qiskit/qiskit-machine-learning/blob/main/CONTRIBUTING.md#contributing which also links to the main Qiskit contributing docs that have a lot of common information.

The easiest way to get the tools you need for development installed is to do a pip install -r requirements-dev.txt - you will see the file in the root of the repo. It has the list of all the tools needed - because they are only needed if you are doing dev they are not part of the standard requirements/install.

1reaction
adekusar-drlcommented, Jun 24, 2021

This is likely due to different line endings in linux and windows: \n vs \r\n. I guess you did not edit copyright notices, so ignore them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Various Optimization Algorithms For Training Neural Network
Many people may be using optimizers while training the neural network without knowing ... It is an improvement on both SGD and standard...
Read more >
How to Manually Optimize Neural Network Models
In this tutorial, you will discover how to manually optimize the weights of neural network models. After completing this tutorial, you will know ......
Read more >
Random Bits Forest: a Strong Classifier/Regressor for Big Data
As a solution, we present Random Bits Forest (RBF), a classification and regression algorithm that integrates neural networks (for depth), ...
Read more >
A Comprehensive Guide on Deep Learning Optimizers
An optimizer is a function or an algorithm that modifies the attributes of the neural network, such as weights and learning rate.
Read more >
Optimization Algorithms in Neural Networks - KDnuggets
Essentially what we need to do is to take the loss and try to minimize it, because a lower loss means our model...
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