<?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: Machine Learning Toolkit: fitting OneClassSVM algorithm in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Machine-Learning-Toolkit-fitting-OneClassSVM-algorithm/m-p/305066#M36396</link>
    <description>&lt;P&gt;the documentation for that algorithm is here with options:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/MLApp/2.2.0/User/Algorithms#Anomaly_Detectors"&gt;https://docs.splunk.com/Documentation/MLApp/2.2.0/User/Algorithms#Anomaly_Detectors&lt;/A&gt;&lt;BR /&gt;
you can set the kernel to be linear, poly, etc., the default is rbf (radial basis function - Gaussian) as well as the bound for training error (nu) and the default is 0.5. &lt;/P&gt;

&lt;P&gt;Machine learning is a lot of practice and trial and error. Play with the options while you're fitting your training set until you see the results you want. &lt;/P&gt;

&lt;P&gt;another useful doc is the cheatsheet.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/images/e/ee/MLTKCheatSheet.pdf"&gt;http://docs.splunk.com/images/e/ee/MLTKCheatSheet.pdf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2017 15:10:25 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2017-07-12T15:10:25Z</dc:date>
    <item>
      <title>Machine Learning Toolkit: fitting OneClassSVM algorithm</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Machine-Learning-Toolkit-fitting-OneClassSVM-algorithm/m-p/305065#M36395</link>
      <description>&lt;P&gt;I'm trying to use the OneClassSVM algorithm (thank you, @cmerriman !) to detect outliers in the &lt;CODE&gt;reactionTime&lt;/CODE&gt; field of my data.  As best as I can tell from the information on scikit-learn.org, OneClassSVM is a novelty detection algorithm, meaning that when I use the "fit" command, it will determine a boundary that fits around most-if-not-all of the data I've given it, and deem those data points "normal."  When I do so, however, 68% of my data ends up being marked "abnormal."  &lt;/P&gt;

&lt;P&gt;Here's the SPL I'm using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xxx source="xxx" reactionTime user=lradics | where reactionTime &amp;lt; 10000 | where reactionTime &amp;gt; 300 | dedup ID | fit OneClassSVM reactionTime into rxn_time_model | table isNormal, reactionTime  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I don't have much experience with this sort of thing, so I'm suspecting it's probably a user error, but I can't find where I would've gone wrong.  Is my understanding of the algorithm's behavior correct?  Can anyone point me to what I should change?&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 14:50:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Machine-Learning-Toolkit-fitting-OneClassSVM-algorithm/m-p/305065#M36395</guid>
      <dc:creator>lradics</dc:creator>
      <dc:date>2017-07-12T14:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Machine Learning Toolkit: fitting OneClassSVM algorithm</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Machine-Learning-Toolkit-fitting-OneClassSVM-algorithm/m-p/305066#M36396</link>
      <description>&lt;P&gt;the documentation for that algorithm is here with options:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/MLApp/2.2.0/User/Algorithms#Anomaly_Detectors"&gt;https://docs.splunk.com/Documentation/MLApp/2.2.0/User/Algorithms#Anomaly_Detectors&lt;/A&gt;&lt;BR /&gt;
you can set the kernel to be linear, poly, etc., the default is rbf (radial basis function - Gaussian) as well as the bound for training error (nu) and the default is 0.5. &lt;/P&gt;

&lt;P&gt;Machine learning is a lot of practice and trial and error. Play with the options while you're fitting your training set until you see the results you want. &lt;/P&gt;

&lt;P&gt;another useful doc is the cheatsheet.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/images/e/ee/MLTKCheatSheet.pdf"&gt;http://docs.splunk.com/images/e/ee/MLTKCheatSheet.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:10:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Machine-Learning-Toolkit-fitting-OneClassSVM-algorithm/m-p/305066#M36396</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-07-12T15:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Machine Learning Toolkit: fitting OneClassSVM algorithm</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Machine-Learning-Toolkit-fitting-OneClassSVM-algorithm/m-p/305067#M36397</link>
      <description>&lt;P&gt;@iradics, have you tried to adjust through other parameters for OneClassSVM?&lt;/P&gt;

&lt;P&gt;List of parameters and following example is available in the documentation: &lt;A href="http://docs.splunk.com/Documentation/MLApp/latest/User/Algorithms#OneClassSVM"&gt;http://docs.splunk.com/Documentation/MLApp/latest/User/Algorithms#OneClassSVM&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; kernel="poly" nu=0.5 coef0=0.5 gamma=0.5 tol=1 degree=3 shrinking=f
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:20:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Machine-Learning-Toolkit-fitting-OneClassSVM-algorithm/m-p/305067#M36397</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-12T15:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Machine Learning Toolkit: fitting OneClassSVM algorithm</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Machine-Learning-Toolkit-fitting-OneClassSVM-algorithm/m-p/305068#M36398</link>
      <description>&lt;P&gt;Thank you! I ended up switching the kernel to linear, and making nu much smaller (0.0001), and that worked.  I'm curious why altering nu didn't affect the results I got with the default kernel... I'll read up on it some more &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:35:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Machine-Learning-Toolkit-fitting-OneClassSVM-algorithm/m-p/305068#M36398</guid>
      <dc:creator>lradics</dc:creator>
      <dc:date>2017-07-12T15:35:18Z</dc:date>
    </item>
  </channel>
</rss>

