Comments (4)
Hi Tanuj,
could you provide me a code to replicate the issue? Instead of using the real database you can also use a randomly generated one with same input/output dimensions.
from tf-levenberg-marquardt.
Hi
Thanks for your prompt response.
I am attaching a different code with the same issue I am facing which is based on the regression tutorial on Tensorflow's website.
tf_regression_tutorial_with_error.zip
from tf-levenberg-marquardt.
Hi Tanuj,
I ran your notebook, the error is not due to the ModelWrapper, but it is caused by this line of code:
tf.keras.models.clone_model(dnn_model_shallow)
Actually you do not need to make a clone of the model, you can just pass it directly to the ModelWrapper.
model_wrapper = lm.ModelWrapper(dnn_model_shallow)
model_wrapper.compile(
optimizer=tf.keras.optimizers.SGD(learning_rate=0.1),
loss=lm.MeanSquaredError())
history = model_wrapper.fit(
train_features,
train_labels,
validation_split=0.2,
verbose=1,
epochs=100
)
Let me know if this solves your problem.
Best,
Fabio
from tf-levenberg-marquardt.
Hi Fabio,
Many thanks for the suggestion. It works!
I was having a look at the curve fitting example and similarly trying to clone the model which is what confused me.
Thanks a lot again for all your help.
Best wishes,
Tanuj
from tf-levenberg-marquardt.
Related Issues (20)
- how can I use model_wrapper to test the model and get the predicted value? HOT 7
- Issue with a model that returns the gradient of a sequence HOT 4
- damping method and matrix solver HOT 3
- Random results HOT 1
- How to save this model and load weights? HOT 12
- How to use LM algorithm in a custom train loop with custom loss function? HOT 11
- Retracing warning on latest tensorflow version HOT 1
- Loss function returns 0 after first epoch for training set only when using validation data in training HOT 4
- Error when running the code test_curve_fitting.py HOT 4
- Applying the LM optimizer for PINNs HOT 13
- Error when using the "fit" function on the wrapped model "unexpected keyword argument 'count_mode'"
- Error when running the model.fit on the wrapped model "Exception encountered when calling ModelWrapper.call()" HOT 3
- Hyperparameter tuning to avoid overfitting HOT 1
- Input matrix is not invertible HOT 2
- Combine fireTS library for NARX network with Levenberg Marquardt HOT 6
- Return value for ModelWrapper fit() HOT 1
- Need help HOT 4
- Applying Levenberg-Marquardt to physically informed neural networks (PINNs) HOT 9
- Error in resuduals when labels given as int instead of float64 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tf-levenberg-marquardt.