C RUBY-ON-RAILS MYSQL ASP.NET DEVELOPMENT RUBY .NET LINUX SQL-SERVER REGEX WINDOWS ALGORITHM ECLIPSE VISUAL-STUDIO STRING SVN PERFORMANCE APACHE-FLEX UNIT-TESTING SECURITY LINQ UNIX MATH EMAIL OOP LANGUAGE-AGNOSTIC VB6 MSBUILD

# In Tensorflow, do I need to add new op for "sinc" or "gaussian" activation functions?

By : Vincent
Date : November 21 2020, 11:01 PM
With these it helps You can implement both these function using basic TF ops. I do not recommend using periodic activation functions (or "quasi periodic" - in general functions which have a changing sign of a derivative) in neural networks from mathematical perspective (enormous amount of shallow local optimas), thus I would recommend not to use sinc. In terms of gaussians, you might have to take a good care of initialization. The tricky thing about this kind of "local functions" is they go to 0 very quickly, thus you have to make sure that initialy your neuron activations are in the "active" part when presented with training data. It is way easier with dot-product based methods (like sigmoid, relu etc.) as all you have to do is deal with the scale. For gaussians you actually have to make sure that your activations are "in place".
code :

Share :

## relation of "radius of curvature" in a gaussian peak and the "sigma" for that gaussian shape

By : Christopher Abatte
Date : March 29 2020, 07:55 AM
I wish did fix the issue. It is possible to calculate radius of curvature of gaussian peak with sigma given (in the top point) with curvature formula (note that Radius = 1 / k). This is Maple output (sigma=s, mu=0, yy is the first derivative of Gaussian, yyy is the second derivative):
This formula is rather complex, but when we substitute x with 0,
code :
``````R = sqrt(2*Pi) * sigma^3
``````
``````sigma = (R / sqrt(2*Pi))^(1/3)
``````

## How to break up a jQuery "toggle" function into seperate "show" and "hide" functions?

By : vess
Date : March 29 2020, 07:55 AM
To fix the issue you can do I have a function that toggles the width of a div, so it has the appearence of "sliding in" from outside the boundaries of the screen , You can just add a boolean variable that checks everything:
code :
``````show = true;

\$('.show-slider').click(function() {
if(show == false){
\$(".slider").animate({
width: "toggle",
}, 300, function() {
});
show = true;
}
});
\$('.hide-slider').click(function() {
if (show == true){
\$(".slider").animate({
width: "toggle",
}, 300, function() {
});
show = false;
}
});
``````

## Tensorflow: What is the equivalent of weight_filler "gaussian" from Caffe in Tensorflow?

By : Sylke van der Laan
Date : March 29 2020, 07:55 AM
I hope this helps . With tf.truncated_normal you can get random values from a truncated random distribution, thus:
code :
``````shape = [10,10] # variable shape
weight = tf.Variable(tf.truncated_normal(shape, mean=0.0, stddev=0.01))
bias = tf.Variable(0.)
``````

## How can i use "leaky_relu" as an activation in Tensorflow "tf.layers.dense"?

By : John Tom
Date : March 29 2020, 07:55 AM
like below fixes the issue If you're really adamant about a one liner for this, you could use the partial() method from the functools module, as follow:
code :
``````import tensorflow as tf
from functools import partial

output = tf.layers.dense(input, n_units, activation=partial(tf.nn.leaky_relu, alpha=0.01))
``````

## Using JQuery to bind "focus" and "blur" functions for "window", doesn't work in IE

By : Wonline
Date : March 29 2020, 07:55 AM
around this issue I need to use JQuery like the follwoing: , Just to have the right answer here: