File Exchange > Data Analysis >    Neural Network Fitting

Author:
OriginLab Technical Support
Date Added:
7/15/2019
Last Update:
6/15/2022
Downloads (90 Days):
450
Total Ratings:
16
File Size:
325 KB
Average Rating:
File Name:
neuralnetfit.opx
File Version:
1.34
Minimum Versions:
License:
Free
Type:
App
Summary:

Fit data with neural network.

Screen Shot and Video:
Description:

Purpose

This App provides a tool for fitting data with neural network. It trains a neural network to map between a set of inputs and output. You can use it to predict response of independent variables. 

Installation

The app requires R software and package (neuralnet).

  1. Install R or upgrade it before installing the App (Minimum required version 3.4.1. Please download R from here.).
  2. Download the neuralnetfit.opx file, then drag-and-drop onto the Origin workspace.
  3. The App will start downloading dependent R packages automatically. Wait a few minutes until the download is completed.

        Note: If auto download fails, a pop-up dialog will ask you to copy 2 lines of commands from Results Log and run them in R to complete package download. 
                 If you reinstall or upgrade R after installing the app, it would not work properly. Please reinstall the app.

Operation

  1. Activate a worksheet or a graph. Click the App icon to bring up the dialog.
  2. On Input Data tab, select single or multiple datasets for Independent Variables and specify Dependent Variable by selecting a single dataset.
  3. On Options tab, change settings to fit a neural network.
    • Number of Layers: Number of layers between input and output.
    • Number of Hidden Neurons in Each Layer: Specify space-separated list of number of hidden neurons. For example, if the 1st layer contains 3 neurons and 2nd layer contains 2 neurons, enter '3 2'.
    • Training Repetitions: The number of repetitions for the neural network’s training. The one with the minimum error is reported.
    • Neural Network Algorithm: Algorithm to calculate the neural network weights.
    • Error Function: Function to minimize in search for the optimum weights. Also called cost function. 
    • Threshold of Error Function: A numeric value specifying the threshold for the partial derivatives of the error function as stopping criteria.
    • Activation Function: Function that is used for smoothing the result.
    • K-fold Cross Validation: The data sample is split into K groups. For each unique group, take the group as a test data set. Take the remaining groups as a training data set. Fit a model on the training set and evaluate it on the test set.
    • Print Progress Messages: Print threshold value at each iteration step.
  4. On Quantities and Plots tab, choose which quantities and plots to output.

    (Notes: Network Plot is NOT available for Origin version earlier than 2021b.)

  5. On Prediction tab, you can select a range of independent data to predict the response with the fitted neural network.
  6. Click OK to output reports.

Note: If neural network fitting fails, it may be because the neural network is too complex or the threshold of error function is too low. Try to use fewer layers and neurons or increase the threshold.

Sample OPJU File
This app provides a sample OPJU file.  Right click the App icon in the Apps Gallery window, and choose Show Samples Folder from the short-cut menu. A folder will open. Drag-and-drop the project file Neural Network Fitting Sample.opju from the folder onto Origin. The Notes window in the project shows detailed steps.
Note: If you wish to save the OPJU after changing, it is recommended that you save to a different folder location (e.g. User Files Folder).

Updates:

v1.34:5/27/2022 Fix loading library bug in R v4.2.
v1.33: Support network plot for Origin 2021b.
v1.21: Add backpropagation algorithm.
v1.1: Add Print Progress Messages option.

Reviews and Comments:
06/30/2023poonhillI'm glad to hear that the information was helpful to you. As a professional software engineer and trek agent specializing in trekking and expeditions in Nepal, I strive to provide valuable solutions to my clients. Feel free to reach out if you have any further questions or if there's anything else I can assist you with.

06/30/2023poonhillThanks for sharing informative article, it help me to solve my problem, by the help of this article, beside that I am a travel professional software developer and trekking operator
in nepal.

06/16/2023filmproductionSuch interesting information and this information help me to solve my problem. I am a professional software engineer and work in a"film production company in Nepal" .

01/03/2023caravan1Very nice information. It solved my problem, I am a professional software engineer and travel agent who works for peak climbing in Nepal and expedition in Nepal.

05/13/2022Qing Wang 

09/26/2021张剑 

11/17/2020OriginLabHi vghazikhanian,
You can try to use our new App "Neural Network Regression" (for version 2021) https://www.originlab.com/fileExchange/details.aspx?fid=581 .

If this App still takes a long time for the large dataset, could you mind to send your dataset file to us? Then we can try to do more test and improve the Apps.
https://www.originlab.com/index.aspx?go=Support/SendFilestoSupport

11/16/2020vghazikhanianThis is a very helpful app, but it needs to be faster by utilizing GPU or at the very least the multiple core processors' capabilities. Without this it takes too long to do even a moderate size data set.

Also one needs to get a feedback as the app is running. One needs the information on how the app is approaching the minimum RMSE.
The app output plot page for large data set and relatively moderate number of neurons is sluggish and unstable. In fact in some cases it disappears (nothing shows up).

10/09/2020OriginLabHi jlp1542,
The R library this App uses is "neuralnet".

10/03/2020JanekW86Unfortunately, I also get the error regarding R although the software is installed and also runs on other apps in Origin.

12