<?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: How do you get sklearn algorithm to work in Splunk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-sklearn-algorithm-to-work-in-Splunk/m-p/394775#M174510</link>
    <description>&lt;P&gt;@ rickyhsu7,&lt;/P&gt;

&lt;P&gt;You &lt;CODE&gt;fit&lt;/CODE&gt; an algorithm and &lt;CODE&gt;apply&lt;/CODE&gt; a model. &lt;BR /&gt;
In simple words, we apply the algorithm on our test data, then if things go well, we give a logical name to the whole thing which is model name. then when we actually have to use that model to our final dataset, we use &lt;CODE&gt;apply&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;Does it make sense?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Nov 2018 09:39:52 GMT</pubDate>
    <dc:creator>pramit46</dc:creator>
    <dc:date>2018-11-16T09:39:52Z</dc:date>
    <item>
      <title>How do you get sklearn algorithm to work in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-sklearn-algorithm-to-work-in-Splunk/m-p/394774#M174509</link>
      <description>&lt;P&gt;I have added another algorithm SVR in Splunk Enterprise with the way on the website below, and it works.&lt;BR /&gt;
But I'm confused about the commands &lt;CODE&gt;fit&lt;/CODE&gt; and &lt;CODE&gt;apply&lt;/CODE&gt;.&lt;BR /&gt;
I've read the user guide &lt;A href="http://docs.splunk.com/Documentation/MLApp/4.0.0/User/Understandfitandapply" target="_blank"&gt;http://docs.splunk.com/Documentation/MLApp/4.0.0/User/Understandfitandapply&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;and  &lt;A href="https://docs.splunk.com/Documentation/MLApp/4.0.0/API/Writeanalgorithmclass" target="_blank"&gt;https://docs.splunk.com/Documentation/MLApp/4.0.0/API/Writeanalgorithmclass&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;I know SVR has &lt;CODE&gt;fit&lt;/CODE&gt; command. &lt;/P&gt;

&lt;P&gt;For example: &lt;BR /&gt;
estimator = SVR()&lt;BR /&gt;
estimator.fit(train_feature, train_label)  #training process&lt;/P&gt;

&lt;P&gt;However, I want to predict another feature "test_feature", and I must use the command below&lt;BR /&gt;
estimator.predict(test_feature) #prediction process&lt;/P&gt;

&lt;P&gt;Now, here is the quastion, where is the &lt;CODE&gt;apply&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;How does it works?&lt;/P&gt;

&lt;P&gt;Could anyone help me?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:04:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-sklearn-algorithm-to-work-in-Splunk/m-p/394774#M174509</guid>
      <dc:creator>rickyhsu7</dc:creator>
      <dc:date>2020-09-29T22:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get sklearn algorithm to work in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-sklearn-algorithm-to-work-in-Splunk/m-p/394775#M174510</link>
      <description>&lt;P&gt;@ rickyhsu7,&lt;/P&gt;

&lt;P&gt;You &lt;CODE&gt;fit&lt;/CODE&gt; an algorithm and &lt;CODE&gt;apply&lt;/CODE&gt; a model. &lt;BR /&gt;
In simple words, we apply the algorithm on our test data, then if things go well, we give a logical name to the whole thing which is model name. then when we actually have to use that model to our final dataset, we use &lt;CODE&gt;apply&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;Does it make sense?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 09:39:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-sklearn-algorithm-to-work-in-Splunk/m-p/394775#M174510</guid>
      <dc:creator>pramit46</dc:creator>
      <dc:date>2018-11-16T09:39:52Z</dc:date>
    </item>
  </channel>
</rss>

