Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

keras

How do you create a custom activation function with Keras?

August 18, 2022 by Magenaut

Sometimes the default standard activations like ReLU, tanh, softmax, … and the advanced activations like LeakyReLU aren’t enough. And it might also not be in keras-contrib.

Categories Python, Q&A Tags keras, keras-layer, python Leave a comment

Tensorflow – ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type float)

August 18, 2022 by Magenaut

Continuation from previous question: Tensorflow – TypeError: ‘int’ object is not iterable

Categories Python, Q&A Tags keras, lstm, python, tensorflow Leave a comment

Why is TensorFlow 2 much slower than TensorFlow 1?

August 18, 2022 by Magenaut

It’s been cited by many users as the reason for switching to Pytorch, but I’ve yet to find a justification/explanation for sacrificing the most important practical quality, speed, for eager execution.

Categories Python, Q&A Tags keras, performance-testing, python, tensorflow, tensorflow2.0 Leave a comment

Failed to get convolution algorithm. This is probably because cuDNN failed to initialize,

August 17, 2022 by Magenaut

In Tensorflow/ Keras when running the code from https://github.com/pierluigiferrari/ssd_keras, use the estimator: ssd300_evaluation. I received this error.

Categories Python, Q&A Tags keras, python, tensorflow Leave a comment

Deep-Learning Nan loss reasons

August 17, 2022 by Magenaut

Perhaps too general a question, but can anyone explain what would cause a Convolutional Neural Network to diverge?

Categories Python, Q&A Tags keras, machine-learning, python, tensorflow, theano Leave a comment

Keras + Tensorflow and Multiprocessing in Python

August 17, 2022 by Magenaut

I’m using Keras with Tensorflow as backend.

Categories Python, Q&A Tags keras, neural-network, python, python-multiprocessing, tensorflow Leave a comment

How to apply gradient clipping in TensorFlow?

August 17, 2022 by Magenaut

Considering the example code.

Categories Python, Q&A Tags deep-learning, keras, machine-learning, python, tensorflow Leave a comment

How does Keras calculate the accuracy?

August 16, 2022 by Magenaut

If there’s a binary classification problem, the labels are 0 and 1.
I know the prediction is a floating-point number because p is the probability of belonging to that class.

Categories Python, Q&A Tags keras, machine-learning, neural-network, python Leave a comment

Keras Sequential model input layer

August 16, 2022 by Magenaut

When creating a Sequential model in Keras, I understand you provide the input shape in the first layer. Does this input shape then make an implicit input layer?

Categories Python, Q&A Tags deep-learning, keras, machine-learning, neural-network, python Leave a comment

How to concatenate two layers in keras?

August 16, 2022 by Magenaut

I have an example of a neural network with two layers. The first layer takes two arguments and has one output. The second should take one argument as result of the first layer and one additional argument. It should looks like this:

Categories Python, Q&A Tags hierarchical, keras, machine-learning, neural-network, python Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 … Page5 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress