Tutorial by Examples

You can define the layer parameters in the prototxt by using param_str. Once you've done it, here is an example on how you access these paremeters inside the layer class: def setup(self, bottom, top): params = eval(self.param_str) param1 = params["param1"] param2 = params.g...
In this example we will design a "measure" layer, that outputs the accuracy and a confusion matrix for a binary problem during training and the accuracy, false positive rate and false negative rate during test/validation. Although Caffe already has a Accuracy layer, sometimes you want some...
This example is a custom data layer, that receives a text file with image paths, loads a batch of images and preprocesses them. Just a quick tip, Caffe already has a big range of data layers and probably a custom layer is not the most efficient way if you just want something simple. My dataLayer.py...
The goal of backpropagation is to optimize the weights so that the neural network can learn how to correctly map arbitrary inputs to outputs. Each layer has its own set of weights, and these weights must be tuned to be able to accurately predict the right output given input. A high level overview ...
Activation functions also known as transfer function is used to map input nodes to output nodes in certain fashion. They are used to impart non linearity to the output of a neural network layer. Some commonly used functions and their curves are given below: Sigmoid Function The sigmoid is a ...
Softmax regression (or multinomial logistic regression) is a generalization of logistic regression to the case where we want to handle multiple classes. It is particularly useful for neural networks where we want to apply non-binary classification. In this case, simple logistic regression is not suf...
from urllib.request import urlopen from collections import Counter import re conn = urlopen('http://textfiles.com/100/dodontae.hum') lines = conn.readlines() conn.close() # readlines() returns byte strings data = ''.join([line.decode('utf-8') for line in lines]) # replace non-letters ...
Enter command "tsc --init" and hit enter. Before that we need to compile ts file with command "tsc app.ts" now it is all defined in below config file automatically. Now, You can compile all typescripts by command "tsc". it will automatically create ".js&q...
public void setCardColorTran(CardView card) { ColorDrawable[] color = {new ColorDrawable(Color.BLUE), new ColorDrawable(Color.RED)}; TransitionDrawable trans = new TransitionDrawable(color); if(Build.VERSION.SDK_INT > Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) { card.setB...

Kaa

Kaa is a good example of OpenSource IoT Platforms, it provides a data collection, notification and device to device communication for you. LanguageConnectivity ProtocolsJavaKaa Protocol (KP) over MQTT, CoAP and TCP Kaa device to device communication is based on Events and you can send events even ...
public void setCardColorTran(View view) { ColorDrawable[] color = {new ColorDrawable(Color.BLUE), new ColorDrawable(Color.RED)}; TransitionDrawable trans = new TransitionDrawable(color); if(Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.JELLY_BEAN) { view.setBackgrou...
This module register hello function on hello module. hello function prints Hello world on console with printf and return 1373 from native function into javascript caller. #include <node_api.h> #include <stdio.h> napi_value say_hello(napi_env env, napi_callback_info info) { n...
Gui, +AlwaysOnTop +Disabled -SysMenu +Owner ; +Owner avoids a taskbar button. Gui, Add, Text,, Some text to display. Gui, Show, NoActivate, Title of Window ; NoActivate avoids deactivating the currently active window.
Once you have AutoHotkey installed, you will probably want it to do stuff. AutoHotkey is not magic, we all wish it was, but it is not. So we will need to tell it what to do. This process is called "Scripting". Right-Click on your desktop. Find "New" in the menu. Click "...
As already mentioned you can declare an unordered map of any type. Let's have a unordered map named first with string and integer type. unordered_map<string, int> first; //declaration of the map first["One"] = 1; // [] operator used to insert the value first["Two"] = 2...
unordered_map<data_type, data_type> variable_name; //declaration variable_name[key_value] = mapped_value; //inserting values variable_name.find(key_value); //returns iterator to the key value variable_name.begin(); // iterator to the first element variable_name.end(); // iterator t...
{$DEFINE MyRuntimeCheck} // Comment out this directive when the check is no-longer required! // You can also put MyRuntimeCheck in the project defines instead. function MyRuntimeCheck: Boolean; {$IFNDEF MyRuntimeCheck} inline; {$ENDIF} begin result := TRU...
The following steps need to be done in the app.ionic.io Create an account or login into your ionic account Click "New App" in the Dashboard and give name for your app I named my app as 'MyIonicApp' In the overview section of this newly created app, there will be a ID...
Most Singleton examples use MonoBehaviour as the base class. The main disadvantage is that this Singleton class only lives during run time. This has some drawbacks: There is no way of directly editing the singleton fields other than changing the code. No way to store a reference to other assets...
IndexedDB is a low-level API for client-side storage of significant amounts of structured data, including files/blobs. This API uses indexes to enable high-performance searches of this data. While Web Storage is useful for storing smaller amounts of data, it is less useful for storing larger amounts...

Page 1281 of 1336