<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: JMP Support Vector Machines (SVM) platform in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/250619#M49196</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Is there a benefit of using the NN platform for finding the optimal settings for the cost and gamma?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I do something similar with my data to find optimal hyperparameter settings, but instead of using the NN to try and find the optimal, I use the Gaussian Process platform. I compared the fits from each of the two "optimal" options and the one from the Gaussian Process had a misclassification rate of 0.25 vs 0.275 for the NN method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snap1.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22158iB1BBE07D8E208930/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snap1.png" alt="Snap1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Just curious.&lt;/P&gt;&lt;P&gt;Thanks!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2020 18:49:52 GMT</pubDate>
    <dc:creator>SDF1</dc:creator>
    <dc:date>2020-03-04T18:49:52Z</dc:date>
    <item>
      <title>JMP Support Vector Machines (SVM) platform</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/244316#M48137</link>
      <description>&lt;P&gt;I am trying to recreate SVM model I did in R but now using JMP builtin SVM platform. Is it possible to do JMP SVM without scaling and centering of my input parameters? I have chemical mixture components expressed in weight fractions so all of them have the same units (wt.fractions). I also wonder if JMP SVM can optimize C and Gamma or I need to do it in R? I am using JMP Pro 15.0.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 21:13:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/244316#M48137</guid>
      <dc:creator>konstantin</dc:creator>
      <dc:date>2020-01-30T21:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Support Vector Machines (SVM) platform</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/244322#M48138</link>
      <description>&lt;P&gt;I don't see any way to turn off the centering and scaling. If all of the inputs are on the same scale, the centering and scaling will not really change that. It affects the "parameters" of the model, but not the model that results. In other words, it won't matter if they are on a 0 to 1 scale or a -1 to +1 scale. The relationships among the X's will remain the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for C and Gamma, from the JMP documentation:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Tip: To find the best fitting model, fit a range of kernel functions and parameter values and use the Model Comparison report.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, JMP will not optimize these parameters for you. One could imagine writing a JMP script to do this, but the script may take some time to run since it needs to fit the SVM for multiple combinations of C and Gamma,and then you would still likely need to do some form of interpolation (or model-building) to find the "optimum".&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 21:46:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/244322#M48138</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2020-01-30T21:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Support Vector Machines (SVM) platform</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/244516#M48171</link>
      <description>&lt;P&gt;Here's a quick example of iterating through a range of parameters. &amp;nbsp;no finesse, just brute force.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note, that after the report comes up, the best model is indicated in the report comparison.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
dt=Open("$SAMPLE_DATA/Big Class.jmp")

gam=.1;
cos=.5;

dt&amp;lt;&amp;lt;obj=	Support Vector Machines(
	Y( :age ),
	X( :height, :weight ),
	Fit(
		Kernel Function( "Radial Basis Function" ),
		Gamma( gam ),
		Cost( cos ),
		Validation Method( "None" ),
	)
);
for(i=1, i&amp;lt;=10, i++,
	for (ii=1, ii&amp;lt;=10, ii++,
		
		
	obj&amp;lt;&amp;lt;Fit(
		Kernel Function( "Radial Basis Function" ),
		Gamma( gam ),
		Cost( cos ),
		Validation Method( "None" )
	);	
	gam=gam+.1);
	cos=cos+.5
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jan 2020 16:15:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/244516#M48171</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2020-01-31T16:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Support Vector Machines (SVM) platform</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/244911#M48212</link>
      <description>it gives an error like this:&lt;BR /&gt;attempting to assign to an object that is not an L-value in access or evaluation of 'Assign' , dt &amp;lt;&amp;lt; obj = /*###*/Support Vector Machines(&lt;BR /&gt;Y( :age ),&lt;BR /&gt;X( :height, :weight ),&lt;BR /&gt;Fit(&lt;BR /&gt;Kernel Function( "Radial Basis Function" ),&lt;BR /&gt;Gamma( gam ),&lt;BR /&gt;Cost( cos ),&lt;BR /&gt;Validation Method( "None" )&lt;BR /&gt;)&lt;BR /&gt;) /*###*/&lt;BR /&gt;&lt;BR /&gt;What did I do wrong?</description>
      <pubDate>Sun, 02 Feb 2020 05:41:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/244911#M48212</guid>
      <dc:creator>konstantin</dc:creator>
      <dc:date>2020-02-02T05:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Support Vector Machines (SVM) platform</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/244912#M48213</link>
      <description>&lt;P&gt;I changed it a bit and it works, thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

gam = .1;
cos = .5;

svm = dt &amp;lt;&amp;lt; Support Vector Machines(
	Y( :age ),
	X( :height, :weight ),
	Fit( Kernel Function( "Radial Basis Function" ), Gamma( gam ), Cost( cos ), Validation Method( "None" ), )
);

For( i = 1, i &amp;lt;= 10, i++,
	For( ii = 1, ii &amp;lt;= 10, ii++, 
		svm &amp;lt;&amp;lt; Fit(
			Kernel Function( "Radial Basis Function" ),
			Gamma( gam ),
			Cost( cos ),
			Validation Method( "None" )
		);
		gam = gam + .1;
	);
	cos = cos + .5;
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Feb 2020 12:19:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/244912#M48213</guid>
      <dc:creator>konstantin</dc:creator>
      <dc:date>2020-02-03T12:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Support Vector Machines (SVM) platform</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/245490#M48247</link>
      <description>&lt;P&gt;I changed it a bit, too. Mostly a matter of personal style.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

// use a small example
data = Open( "$SAMPLE_DATA/Big Class.jmp" );

// launch SVM platform
svm = data &amp;lt;&amp;lt; Support Vector Machines(
	Y( :age ),
	X( :height, :weight )
);

// iterate over a range of hyper-parameters
For( cost = 0.5, cost &amp;lt;= 5, cost += 0.5,
	For( gamma = 0.1, gamma &amp;lt;= 1, gamma += 0.1, 
		svm &amp;lt;&amp;lt; Fit(
			Kernel Function( "Radial Basis Function" ),
			Gamma( gamma ),
			Cost( cost ),
			Validation Method( "None" )
		);
	);
);

// separate parameters and performance in a new table
results = Report( svm )["Model Comparison"][TableBox(1)] &amp;lt;&amp;lt; Make Into Data Table;

// fit interpolator for profiling
results &amp;lt;&amp;lt; Neural(
	Y( :Training Misclassification Rate ),
	X( :Cost, :Gamma ),
	Informative Missing( 0 ),
	Validation Method( "Holdback", 0.3333 ),
	Fit(
		NTanH( 3 ),
		Profiler(
			1,
			Confidence Intervals( 1 ),
			Term Value(
				Cost( 2.75, Lock( 0 ), Show( 1 ) ),
				Gamma( 1, Lock( 0 ), Show( 1 ) )
			)
		),
		Plot Actual by Predicted( 1 ),
		Plot Residual by Predicted( 1 )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I also added another step to understand how the miss-classification rate depended on the hyper-parameters. I saved the table from Model Comparison and fit a simple (but adequate) neural network. The profiler can be used to find good values and understand them. For example, using a high gamma and a moderate cost with little improvement by increasing the cost.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 12:53:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/245490#M48247</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-02-03T12:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Support Vector Machines (SVM) platform</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/247450#M48570</link>
      <description>&lt;P&gt;How can I force Probability Threshold to stay 0.5 all time?&lt;BR /&gt;When I run Cost and Gamma optimization using Validation Method("KFold", 10), it always calculates Validation Misclassification using adjusted threshold, so it calculates Conditional Validation Misclassification Rate, please see attached file. I can not select best Cost and Gamma as there is third parameter Threshold that I am not trying to optimize.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 17:13:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/247450#M48570</guid>
      <dc:creator>konstantin</dc:creator>
      <dc:date>2020-02-13T17:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Support Vector Machines (SVM) platform</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/250535#M49172</link>
      <description>I also using JMP Pro 15.0.Try Machines (SVM) .Thanks!</description>
      <pubDate>Wed, 04 Mar 2020 14:06:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/250535#M49172</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2020-03-04T14:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Support Vector Machines (SVM) platform</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/250619#M49196</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Is there a benefit of using the NN platform for finding the optimal settings for the cost and gamma?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I do something similar with my data to find optimal hyperparameter settings, but instead of using the NN to try and find the optimal, I use the Gaussian Process platform. I compared the fits from each of the two "optimal" options and the one from the Gaussian Process had a misclassification rate of 0.25 vs 0.275 for the NN method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snap1.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22158iB1BBE07D8E208930/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snap1.png" alt="Snap1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Just curious.&lt;/P&gt;&lt;P&gt;Thanks!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 18:49:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/250619#M49196</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2020-03-04T18:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Support Vector Machines (SVM) platform</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/250682#M49210</link>
      <description>&lt;P&gt;The questions were about the hyper-parameters for the Neural fitting process. We were not using a Neural model of results from another platform hyper-parameters.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 21:33:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/250682#M49210</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-03-04T21:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Support Vector Machines (SVM) platform</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/250693#M49214</link>
      <description>True, but you used the NN platform to estimate the optimal values for cost and gamma in order to achieve the best model fit given the possible combinations you used in the for loops, right?&lt;BR /&gt;&lt;BR /&gt;My question is just about whether or not there is a benefit of using the NN platform over Gaussian processes to find the optimal values.</description>
      <pubDate>Wed, 04 Mar 2020 21:42:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/250693#M49214</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2020-03-04T21:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Support Vector Machines (SVM) platform</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/250698#M49215</link>
      <description>&lt;P&gt;Can't say.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just used Neural because it is a flexible interpolator. It served my purpose. I did not mean to imply that it is the BEST interpolator in this case or any other case in general. I got my benefit. I did not consider any other interpolator. Another one might have done better in this case, but this result was 'gut genug.'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The choice of the best model ALWAYS DEPENDS. It isn't 'plug and chug.'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many niches of predictive modeling have their favorite model and never look at other models. Maybe it was the best model the first time that a model was trained. Well, data changes and so should the predictive model. The characteristics of the data determine the choice of the best type of model type but the characteristics of the data change over time. So we need to refresh the model as the data changes and probably need to re-evaluate the choice of the type of model, too. (We won't get into ensemble models today.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A reply to a question in this discussion is incapable of explaining all the pros and cons of all the types of predictive models in different situations. No type of model is superior. I suggest reading "Elements of Statistical Learning."&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 22:01:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Support-Vector-Machines-SVM-platform/m-p/250698#M49215</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-03-04T22:01:09Z</dc:date>
    </item>
  </channel>
</rss>

