O'Reilly logo

Hands-On Machine Learning with C# by Matt R. Cole

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Functions

Functions are the basic building blocks of a Kelp.Net neural network. Single functions are chained together within function stacks to create powerful and possibly complex network chains. There are four primary types of functions you need to know about, and their purposes, should be self-explanatory:

  • Single-input functions
  • Dual-input functions
  • Multi-input functions
  • Multi-output functions

Functions are also chained together when networks are loaded from disks.

Each function has a forward and backward method that you will be implementing when you create functions of your own:

public abstract NdArray[] Forward(params NdArray[] xs);public virtual void Backward([CanBeNull] params NdArray[] ys){}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required