I'd like to have the cm8taccformula.txt and cm16taccformula.txt be arguments from a dos window without opening the script. Only the names for the .txt files would change but the rest of the file path would stay the same. Also, can the Set Correlation Function ("Gaussian") become an argument that is input from a dos window? For example, maybe I would want to change it to Cubic.
Thank you for any suggestions!
Names Default To Here( 1 );
dt = Open( "Z:\Documents\test.csv" );
dt << Sort(By("cmux"), order("Ascending"), Replace Table);
dt = Current Data Table();
dt << select where( :cmux == 16 );
dt << hide and exclude;
obj = Gaussian Process(
Y( :tacc ),
X( :rows, :cols, :slew, :load, :temp, :volt ),
Set Correlation Function( "Gaussian" ),
);
obj << Save Prediction Formula;
f = Column( "tacc Prediction Formula" ) << get formula;
t = Char( Name Expr( f ));
Save Text File("C:/Users/username/Documents/cm8taccformula.txt", t );
dt = Current Data Table();
dt << select where( :cmux == 16 );
dt << hide and exclude;
dt = Current Data Table();
dt << select where( :cmux == 8 );
dt << hide and exclude;
obj2 = Gaussian Process(
Y( :tacc ),
X( :rows, :cols, :slew, :load, :temp, :volt ),
Set Correlation Function( "Gaussian" ),
);
obj2 << Save Prediction Formula;
f = Column ("tacc Prediction Formula 2") << get formula;
t = Char (Name Expr(f));
Save Text File("C:/Users/username/Documents/cm16taccformula.txt", t);
dt = Current Data Table();
dt << select where( :cmux == 8 );
dt << hide and exclude;