33 r<<
"options(device='pdf')";
37 TRObject ydata =
c(0.699369,0.700462,0.695354,1.03905,1.97389,2.41143,1.91091,0.919576,-0.730975,-1.42001);
44 TRObject fit =
nls(
asformula(
"ydata ~ p1*cos(p2*xdata) + p2*sin(p1*xdata)"),Label[
"data"]=
data, Label[
"start"]=rlist(Label[
"p1"]=1,Label[
"p2"]=0.2));
49 if (!
gROOT->IsBatch()) {
50 devnew(
"Fitting Regression");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter char TVirtualGLPainter plot
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Double_t(* Function)(Double_t)
This is a class to create DataFrames from ROOT to R.
This is a class to pass functions from ROOT to R.
static TRInterface & Instance()
static method to get an TRInterface instance reference
This is a class to get ROOT's objects from R's objects.
predict(model, test_X, batch_size=100)
fit(model, train_loader, val_loader, num_epochs, batch_size, optimizer, criterion, save_best, scheduler)
namespace associated R package for ROOT.