Questions tagged [non-linear-regression]

In statistics, nonlinear regression is a form of regression analysis in which observations are modeled by a function which is a nonlinear combination of the model parameters and depends on one or more independent variables.

732 questions
0
votes
1 answer

Can we use Deep neural network for regression problems?

I want to train the DNN using ReLUs instead of typical sigmoid units. I have successfully implemented below example for Classification problem (softmax layer),but i am trying to implement this for regression.My data-set is based on Load…
0
votes
1 answer

Nonlinear model with many independent variables (fixed effects) in R

I'm trying to fit a nonlinear model with nearly 50 variables (since there are year fixed effects). The problem is I have so many variables that I cannot write the complete formula down like nl_exp = as.formula(y ~ t1*year.matrix[,1] +…
zy.G
  • 43
  • 1
  • 10
0
votes
1 answer

I've got some problems on understanding spark LBFGS treeAggregate transformation

I'm trying to use spark LBFGS method in my project recently, but when I read source code ,I realy got a big problem, here is the code: the code I don't understand and here is the source code…
0
votes
1 answer

How to convert an nlfb object in a nls object

I performed an NLS regression using nlfb from the nlmrt package. With theta_scaled being my initial parameter vector > theta_scaled [1] 0.60000 0.73624 -0.77962 and residuals_function a function which for each parameter vector would…
DeltaIV
  • 4,773
  • 12
  • 39
  • 86
0
votes
1 answer

Smoothing over a Polynomial curve

Given data that looks like this: x<-c(0.287,0.361,0.348,0.430,0.294) y<-c(105,230,249,758,379) I'm trying to fit several different methods to this data. For this question I'm looking at 2nd order polynomial fits vs Loess fits. To get a smoother…
Vinterwoo
  • 3,843
  • 6
  • 36
  • 55
0
votes
1 answer

nsqnonlin - Incorrect convergence - Fitted curve does not model my data at all

Below, the red crosses are the data, and the blue line is the fit curve. Data and fit curve - image This is the function being fit: function diff = fit_simp(x,X,Y) % This function is called by lsqnonlin. % x is a vector which contains the…
Sovm
  • 51
  • 7
0
votes
1 answer

How do I add geom-smooth lines to a facet grid but excluding specific facets in R?

I want to exclude trend lines from the following three facets: Lawn;2014 Tussock;2013 Tussock;2015 I have tried to use subset() but I cannot figure out how to drop or exclude specific observations within geom_smooth(). plot <- ggplot(data,…
Dominique
  • 107
  • 2
  • 13
0
votes
1 answer

Error In R code in LPPL model in R

I am learning R and had problem when I try run LPPL using nls. I used monthly data of KLSE. > library(tseries) > library(zoo) ts<-read.table(file.choose(),header=TRUE) ts rdate Close Date 1 8/1998 302.91 0 2 9/1998 …
aaa
  • 1
  • 1
0
votes
0 answers

Non-linear mixed effect model, nlme model formulation in R

I have a data set which collected biomass of a species from 7 trees repeatedly. I assumed the biomass would change as a Gaussian peak function through time. Since it's non-linear with nested repeated measure and I would like to add tree group as a…
lamushidi
  • 303
  • 3
  • 5
  • 14
0
votes
1 answer

Got stuck adding 9 random numbers with tensorflow / Python

Sorry Newbee in Tensorflow and Python I implemented this code to learn the sum of 9 random numbers. I'm getting an error which I can't understand.Unfortunately I could not find a similar problem in tutorials our here ... import tensorflow as…
0
votes
1 answer

Theano Neural Net All Outputs Converge to Same Value For All Inputs

I've been struggling to get the implementation of a neural net to converge to meaningful values. I have black and white images. Each image is either 40% black and 60% white or 60% white and 40% black. Classifying for more black or white. I break the…
John Down
  • 490
  • 2
  • 5
  • 20
0
votes
1 answer

How to solve Non-Linear model in Java with Apache Commons or other?

I have a sample of Time and Temperature (x,y), and I need know how time the temperature is equals at Z degrees celcius ( ex.: 35 C ). My sample colleted is little, for start of calculus I use the 3 samples. Follow: Temperature | Time (s) 25 …
0
votes
1 answer

Non linear regression

I am trying to do a non linear regression to find the constants Is and n with the least square curve fitting.This is the formula Is(exp(1).^(V/26.*n)) And this is my code fun = @(n,Is)Is(exp(1).^(V/26.*n)); x0 = [0,14]; x =…
carloscc
  • 779
  • 3
  • 14
  • 20
0
votes
1 answer

nan session output from polynomial regression training in Tensorflow

I am new to Tensorflow and am working through the examples of regression examples given here tensorflow tutorials. Speicifically, I am working on the 3rd: "polynomial_regression.py" I followed the linear regression example fine, and have now moved…
zephyrus
  • 1,266
  • 1
  • 12
  • 29
0
votes
1 answer

Fitting logistic growth data by using R

Currently, I fit my data with an exponential function: Index = exp(a + b * Age + c * SaleType + d * Age * SaleType + e * miles) But it looks like I over fit my data at the beginning, underfit at the middle and I am fine at the end. Could I use an…