Example NumVector svmRegression 001

 

 

Description

This example shows how the svmRegression function performs simple linear regression on NumVectors.

 

Details

(setq X #(obj|#(num| 2 4 5) #(num| 1 2 3) #(num| 6 7 8))) Returns: #<ObjVector 123456>
(setq Y #(num| 5 8 9)) Returns: #<NumVector 123456>
(setq S (svmRegression X Y vectorInnerProduct 0.1 0.05 4 10 false)) Returns: #<Structure 123456>

Displays the resulting Structure after the Regression.

(display S.Generations) Returns: 1.0
(display S.Weights) Returns: #(num| -42.79999999704 63.79999999573 4.199999999673 )
(display S.Error) Returns: 0.0
(display S.Ey) Returns: #(num| 5.000000000167 7.999999999764 8.99999999998 )
(display S.Py) Returns: #(num| 3.343529897393E-011 2.954791966658E-011 2.248473012716E-012 )

 

Related Examples

Here are examples of the svmRegression function at work.

NumVector svmRegression 001

 

Function Links

Here is the link to the current function used in this example.

svmRegression

Here are a number of links to other related functions.

 

Argument Types

Here are the links to the data types of the arguments used in this example.

Vector Float Structure ObjVector
NumVector Number

Here are a number of links to examples having similar argument types.

BitVector addMethod 023 BitVector bitToIntegerVector 001 BitVector bitToNumberVector 001 BitVector cdr 010
BitVector inside 007 BitVector isBitVector 001 BitVector setq 024 Complex * 002
Complex / 002 Complex compare 021 Complex cos 002 Complex exp 002
Complex expt 002 Complex log 002 Complex mod 002 Complex sqrt 002
Complex tan 002 Context globalBinding 001 CpxVector apply 010 Date date 001
Date day 001 Date days360 001 Date getTickCount 001 Date hour 001
Date isType 014 Date julian 001 Date minute 001 Date month 001
Date now 001 Date second 001 Date setq 019 Date sizeof 012
Date time 001 Date time 002 Date today 001 Date year 001
Dictionary isDictionary 001 Dictionary objectToDictionary 001 Dictionary objectToDictionary 002 Dictionary objectToDictionary 003
Dictionary objectToDictionary 004 Dictionary refAttributes 002 Dictionary refValues 002 Dictionary setAttributes 002
Dictionary sort 003 Directory objectToDirectory 001 Directory objectToDirectory 002 Directory objectToDirectory 003
Directory objectToDirectory 004 Directory refAttributes 003 Directory refValues 003 Directory setAttributes 003
FltVector binaryInsert 004 FltVector cdr 006 FltVector compareLE 014 FltVector compareLT 014
FltVector isFloatVector 001 FltVector setq 019 Function isType 015 Function sizeof 013
IntVector binaryInsert 005 IntVector bitToIntegerVector 002 IntVector cdr 007 IntVector isIntegerVector 001
IntVector setq 020 Integer binaryNand 001 Integer binaryNor 001 Integer binaryNxor 001
Integer bitwiseAnd 001 Integer bitwiseNand 001 Integer bitwiseNor 001 Integer bitwiseNxor 001
Integer bitwiseOr 001 Integer bitwiseShiftLeft 001 Integer bitwiseShiftRight 001 Integer bitwiseXor 001
Integer fact 001 Integer isInteger 001 Lambda globalBinding 001 Matrix binaryInsert 004
Matrix cdr 007 Matrix cdr 008 Matrix compareGT 007 Matrix compareLT 007
Matrix matrixGaussianSubstitute 001 NumMatrix cdr 011 NumMatrix matrixGaussianSubstitute 001 NumVector addMethod 021
NumVector append 008 NumVector apply 007 NumVector binaryInsert 006 NumVector binarySearch 007
NumVector bitToNumberVector 002 NumVector cdr 008 NumVector compare 016 NumVector compareEQ 014
NumVector compareGE 014 NumVector compareGT 014 NumVector compareLE 014 NumVector compareLT 014
NumVector compareNE 014 NumVector comparison 014 NumVector copy 008 NumVector defmethod 019
NumVector delete 011 NumVector insert 007 NumVector inside 006 NumVector isAtom 007
NumVector isEqual 015 NumVector isIdentical 014 NumVector isNumberVector 001 NumVector isObject 009
NumVector isType 018 NumVector length 010 NumVector map 007 NumVector mapc 007
NumVector member 006 NumVector methodsOf 019 NumVector new 011 NumVector objectToNumVector 001
NumVector ref 024 NumVector remove 006 NumVector resize 008 NumVector reverse 005
NumVector send 017 NumVector setCdr 008 NumVector setLastCdr 008 NumVector setq 021
NumVector sizeof 016 NumVector sort 015 NumVector svmRegression 001 NumVector type 018
NumVector uniqueInsert 006 NumVector vectorBinaryInnerProduct 001 NumVector vectorBipolarInnerProduct 001 NumVector vectorCosineInnerProduct 001
NumVector vectorCubeInnerProduct 001 NumVector vectorExpInnerProduct 001 NumVector vectorFill 005 NumVector vectorInnerProduct 001
NumVector vectorLogInnerProduct 001 NumVector vectorQuartInnerProduct 001 NumVector vectorQuintInnerProduct 001 NumVector vectorSigmoidInnerProduct 001
NumVector vectorSineInnerProduct 001 NumVector vectorSquareInnerProduct 001 NumVector vectorTanInnerProduct 001 NumVector vectorTanhInnerProduct 001
Number * 001 Number + 001 Number - 001 Number / 001
Number abs 001 Number add1 001 Number addMethod 014 Number addi 001
Number asin 001 Number atan 001 Number avg 001 Number compare 011
Number compareEQ 011 Number compareGE 011 Number compareGT 011 Number compareLE 011
Number compareLT 011 Number compareNE 011 Number comparison 010 Number cos 001
Number cosh 001 Number deg 001 Number divi 001 Number exp 001
Number expt 001 Number fact 001 Number floor 001 Number fraction 001
Number isEqual 009 Number isEven 001 Number isExact 001 Number isIdentical 009
Number isInexact 001 Number isMoney 001 Number isNegative 001 Number isNull 001
Number isNumber 001 Number isOdd 001 Number isPositive 001 Number isType 013
Number isZero 001 Number kurtosis 001 Number log 001 Number log10 001
Number log2 001 Number logbase 001 Number max 001 Number median 001
Number min 001 Number mod 001 Number modi 001 Number muli 001
Number nadd 001 Number ncompareGE 001 Number ncompareGT 001 Number ncompareLE 001
Number ncompareLT 001 Number ndiv 001 Number nmod 001 Number nmul 001
Number nsub 001 Number number 001 Number pi 001 Number product 001
Number rad 001 Number random 001 Number randomize 001 Number range 001
Number ref 019 Number round 001 Number setq 018 Number sign 001
Number sin 001 Number sinh 001 Number sizeof 011 Number skew 001
Number sqrt 001 Number srandom 001 Number stdev 001 Number stdevp 001
Number sub1 001 Number subi 001 Number sumsqr 001 Number tan 001
Number tanh 001 Number type 013 Number var 001 Number varp 001
ObjVector addMethod 022 ObjVector append 009 ObjVector cdr 009 ObjVector compare 017
ObjVector compareEQ 014 ObjVector compareGE 014 ObjVector compareGT 014 ObjVector compareLE 014
ObjVector compareLT 014 ObjVector compareNE 014 ObjVector comparison functions 014 ObjVector copy 009
ObjVector delete 012 ObjVector insert 008 ObjVector isAtom 008 ObjVector isEqual 016
ObjVector isIdentical 015 ObjVector isObject 010 ObjVector isObjectVector 001 ObjVector isType 019
ObjVector length 011 ObjVector member 007 ObjVector ref 025 ObjVector remove 007
ObjVector resize 009 ObjVector reverse 006 ObjVector setCdr 009 ObjVector setLastCdr 009
ObjVector setq 022 ObjVector sizeof 017 ObjVector sort 016 ObjVector type 019
ObjVector uniqueInsert 007 ObjVector vectorFill 006 ObjectRepository exportTab 001 ObjectRepository importTab 001
PcodeVector isPcodeVector 001 PcodeVector setq 023 ShortVector cdr 008 ShortVector setq 021
String find 001 String find 002 String isChar 001 String isCharAlphabetic 001
String isCharAlphanumeric 001 String isCharLowercase 001 String isCharName 001 String isCharNumeric 001
String isCharUppercase 001 String isCharWhitespace 001 String isEqual 001 String isEqual 002
String isObject 001 String isString 001 String isText 001 String isType 001
String isType 002 String isType 003 String parse 001 String sizeof 001
String string 001 String string 002 String string 003 String stringToBVector 001
String stringToBVector 002 String stringToBVector 003 String stringToVector 001 String stringToVector 002
String stringToVector 003 String stringToVector 004 String type 001 Structure addMethod 003
Structure addMethod 004 Structure append 004 Structure append 005 Structure apply 001
Structure apply 002 Structure binaryInsert 001 Structure binarySearch 001 Structure cdr 001
Structure cdr 002 Structure compareEQ 003 Structure compareGE 003 Structure compareGT 003
Structure compareLE 003 Structure compareLT 003 Structure compareNE 003 Structure comparison functions 003
Structure copy 001 Structure count 001 Structure defineStructure 001 Structure defineStructure 002
Structure defineStructure 003 Structure defmethod 004 Structure defmethod 005 Structure defstruct 001
Structure defstruct 002 Structure delete 001 Structure delete 002 Structure fieldsOf 001
Structure insert 001 Structure inside 001 Structure isAtom 001 Structure isBound 001
Structure isEqual 001 Structure isIdentical 001 Structure isInside 001 Structure isMember 001
Structure isObject 003 Structure isStructure 001 Structure isType 005 Structure length 004
Structure makeStructure 001 Structure makeStructure 002 Structure map 001 Structure mapc 001
Structure member 001 Structure methodsOf 005 Structure new 003 Structure objectToStructure 001
Structure objectToStructure 002 Structure objectToStructure 003 Structure objectToStructure 004 Structure ref 004
Structure ref 006 Structure refAttributes 001 Structure refValues 001 Structure remove 001
Structure resize 001 Structure send 003 Structure setAttributes 001 Structure setCdr 001
Structure setCdr 002 Structure setLastCdr 001 Structure setq 003 Structure setq 004
Structure setq 005 Structure setq 006 Structure sizeof 003 Structure sort 001
Structure sort 002 Structure sort 003 Structure type 003 Structure type 004
Structure type 005 Structure uniqueInsert 001 Structure uniqueInsert 002 Symbol isCharName 002
Symbol isCharNumeric 002 Symbol isObject 002 Symbol isSymbol 001 Symbol isType 004
Symbol sizeof 002 Symbol type 002 Vector addMethod 007 Vector append 006
Vector appendWriteln 001 Vector apply 003 Vector apply 004 Vector binaryInsert 002
Vector binaryInsert 003 Vector binarySearch 003 Vector binarySearch 004 Vector cdr 005
Vector cdr 006 Vector compare 006 Vector compareEQ 006 Vector compareGE 006
Vector compareGT 006 Vector compareLE 006 Vector compareLT 006 Vector compareNE 006
Vector comparison functions 006 Vector copy 004 Vector copy 005 Vector count 004
Vector defmethod 008 Vector delete 007 Vector delete 008 Vector insert 004
Vector inside 004 Vector isAtom 004 Vector isEqual 004 Vector isIdentical 004
Vector isObject 006 Vector isType 008 Vector isVector 001 Vector length 007
Vector map 004 Vector mapc 004 Vector member 004 Vector methodsOf 009
Vector new 007 Vector new 008 Vector objectToVector 001 Vector ref 013
Vector ref 014 Vector refAttributes 004 Vector refValues 004 Vector remove 004
Vector resize 004 Vector reverse 001 Vector send 006 Vector setAttributes 004
Vector setAttributes 005 Vector setBlock 001 Vector setCdr 004 Vector setLastCdr 002
Vector setq 012 Vector setq 013 Vector sizeof 006 Vector sort 010
Vector sort 011 Vector type 009 Vector uniqueInsert 003 Vector vectorFill 001

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE