Use a linear output unit.
Here is a simple example using R:
set.seed(1405)
x <- sort(10*runif(50))
y <- sin(x) + 0.2*rnorm(x)
library(nnet)
nn <- nnet(x, y, size=6, maxit=40, linout=TRUE)
plot(x, y)
plot(sin, 0, 10, add=TRUE)
x1 <- seq(0, 10, by=0.1)
lines(x1, predict(nn, data.frame(x=x1)), col="green")
More Related Contents:
- Is this possible to predict the lottery numbers (not the most accurate)? [closed]
- Machine Learning Two class classification [closed]
- Artificial Neural Network Toplogy
- How to interpret data output from Weka?
- What is the role of the bias in neural networks? [closed]
- Why binary_crossentropy and categorical_crossentropy give different performances for the same problem?
- Loss & accuracy – Are these reasonable learning curves?
- Clarification on a Neural Net that plays Snake
- Common causes of nans during training of neural networks
- Why do we have to normalize the input for an artificial neural network? [closed]
- Many to one and many to many LSTM examples in Keras
- How to interpret caffe log with debug_info?
- Caffe | solver.prototxt values setting strategy
- Epoch vs Iteration when training neural networks [closed]
- What is `weight_decay` meta parameter in Caffe?
- Cost function training target versus accuracy desired goal
- How to calculate optimal batch size
- What is the difference between loss function and metric in Keras? [duplicate]
- Keras Text Preprocessing – Saving Tokenizer object to file for scoring
- Why should weights of Neural Networks be initialized to random numbers? [closed]
- Is deep learning bad at fitting simple non linear functions outside training scope (extrapolating)?
- multi-layer perceptron (MLP) architecture: criteria for choosing number of hidden layers and size of the hidden layer? [closed]
- How to interpret loss and accuracy for a machine learning model [closed]
- TimeDistributed(Dense) vs Dense in Keras – Same number of parameters
- Caffe: What can I do if only a small batch fits into memory?
- How to create caffe.deploy from train.prototxt
- How to reduce a fully-connected (`”InnerProduct”`) layer using truncated SVD
- What is the difference between Keras model.evaluate() and model.predict()?
- What is `lr_policy` in Caffe?
- Using pre-trained word2vec with LSTM for word generation