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

Plotting all functions

The plotting of all the activation functions is done within a single function, remarkably titled PlotAllFunctions:

private void PlotAllFunctions(){// First, clear out any old GraphPane's from the MasterPanecollection MasterPane master = zed.MasterPane;master.PaneList.Clear();// Display the MasterPane Title, and set the   outer margin to 10 pointsmaster.Title.IsVisible = true;master.Margin.All = 10;// Plot multiple functions arranged on a master pane.PlotOnMasterPane(Functions.LogisticApproximantSteep,  "Logistic Steep (Approximant)");PlotOnMasterPane(Functions.LogisticFunctionSteep,  "Logistic Steep (Function)");PlotOnMasterPane(Functions.SoftSign, "Soft Sign");PlotOnMasterPane(Functions.PolynomialApproximant, "Polynomial ...

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