📄 mars_doc.txt
字号:
Documentation for MARS driver code mars_dvr3.f The mars driver code mars_dvr3.f is modeled after the sample driverroutine supplied with the MARS code, but has some features whichmake it easy to use. This code must be compiled with the mars routinescontained in marslib.f. This is done by typing:g77 -g -o xmars mars_dvr3.f marslib.f -ff77 -fno-globals -Wno-globalsThe executable will be the file xmars, which can be invoked by typingxmarsIn order to use the mars module with xtal, a copy of the executable mustbe in the same directory containing xtal. The program xmars will ask for the following user parameters:1. Training set file nameThe training data is expected to be in ASCII form with spaces or tabs ascolumn delimiters. The last column is assumed to be the y variable.2. Number of samples in the training setThis informs the program how many rows are in the training set. The maximumnumber of samples allowed is 10000.3. Number of predictor variables in training data.This tells the program how many predictor or X variables are in the trainingand test data.4. Test set file nameThe test data is expected to be in ASCII form with spaces or tabs ascolumn delimiters. The last column is assumed to be the y variable.5. Number of samples in the test setThis informs the program how many rows are in the test set. The maximum numberof samples allowed is 10000.6. Maximum number of basis functions to use.This parameter controls the complexity of the model and should be set between1 and 100.7. Maximum number of degrees of freedom to useThis parameter should be between 0 and 9. 8. Maximum number of interactions to allowThe default value for this parameter is the number of predictor (X)variables. This parameter is used to limit the number of variables whichmay enter in interaction terms of the basis functions.9. Type of spline fitThe default value for this parameter is 1 meaning piecewise-linearsplines are used. If this is set to 2, then piecewise-cubic splinesare used.10. Name of output file used to hold run messagesThe mars routines creates some useful and some not so usefulrun time messages about the fit it produces. If you would liketo save these, type in a file name here. If you do not wantthese saved, type the word 'none' here.11. Name of output file used to hold fitted test setAfter execution, this file will contain the test set dataonly the y-values will be replaced with the estimates given byMARS. If you do not want this file, type 'none' here.12. Name of the output file used to hold the RMS errorAfter execution, this file will contain the RMS error offitting the test set. If you do not want this file, type 'none' here.NOTE: the program does not produce any output to stdout, onlyto the above output files.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -