<?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 Script to obtain a global anomaly score ( screening outliers ) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Script-to-obtain-a-global-anomaly-score-screening-outliers/m-p/615630#M81537</link>
    <description>&lt;P&gt;JMP has several methods to explore outliers (Analyze&amp;gt;Screening&amp;gt;Explore outliers).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a first data exploration, I am looking for a solution so the users can interactively filter all anomalous rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One simple approach is to conduct a KNN outlier analysis (unchecking the option of imputations and being able to change the default number)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FN_0-1679518219072.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51421i185C8CAD30B6B87B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FN_0-1679518219072.png" alt="FN_0-1679518219072.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And save the distances to each NN, so a global score can be obtained (e.g., by adding all distances into one column).&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="FN_1-1679518708197.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51422i97839FFC4045877E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FN_1-1679518708197.png" alt="FN_1-1679518708197.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can automate these steps that have GUI actions in JMP 16?&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 );
Clear Log();

dt = Open( "$SAMPLE_DATA/Bands Data.JMP" );

// Launch platform: Explore Outliers
Explore Outliers(
	Y(
		:proof cut, :viscosity, :caliper, :ink temperature, :humidity, :roughness,
		:blade pressure, :varnish pct, :press speed, :ink pct, :solvent pct,
		:ESA Voltage, :ESA Amperage, :wax, :hardener, :roller durometer,
		:current density, :anode space ratio, :chrome content
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 16:06:07 GMT</pubDate>
    <dc:creator>FN</dc:creator>
    <dc:date>2023-06-09T16:06:07Z</dc:date>
    <item>
      <title>Script to obtain a global anomaly score ( screening outliers )</title>
      <link>https://community.jmp.com/t5/Discussions/Script-to-obtain-a-global-anomaly-score-screening-outliers/m-p/615630#M81537</link>
      <description>&lt;P&gt;JMP has several methods to explore outliers (Analyze&amp;gt;Screening&amp;gt;Explore outliers).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a first data exploration, I am looking for a solution so the users can interactively filter all anomalous rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One simple approach is to conduct a KNN outlier analysis (unchecking the option of imputations and being able to change the default number)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FN_0-1679518219072.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51421i185C8CAD30B6B87B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FN_0-1679518219072.png" alt="FN_0-1679518219072.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And save the distances to each NN, so a global score can be obtained (e.g., by adding all distances into one column).&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="FN_1-1679518708197.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51422i97839FFC4045877E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FN_1-1679518708197.png" alt="FN_1-1679518708197.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can automate these steps that have GUI actions in JMP 16?&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 );
Clear Log();

dt = Open( "$SAMPLE_DATA/Bands Data.JMP" );

// Launch platform: Explore Outliers
Explore Outliers(
	Y(
		:proof cut, :viscosity, :caliper, :ink temperature, :humidity, :roughness,
		:blade pressure, :varnish pct, :press speed, :ink pct, :solvent pct,
		:ESA Voltage, :ESA Amperage, :wax, :hardener, :roller durometer,
		:current density, :anode space ratio, :chrome content
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:06:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-to-obtain-a-global-anomaly-score-screening-outliers/m-p/615630#M81537</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2023-06-09T16:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Script to obtain a global anomaly score ( screening outliers )</title>
      <link>https://community.jmp.com/t5/Discussions/Script-to-obtain-a-global-anomaly-score-screening-outliers/m-p/615641#M81538</link>
      <description>&lt;P&gt;I usually start my looking for same names from Scripting Index (and in this case it might work)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1679519425252.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51423i2A39724C38A24FBF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1679519425252.png" alt="jthi_0-1679519425252.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Only thing I'm not sure about is Impute Missing part&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1679519529906.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51424iA40678643B36359A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1679519529906.png" alt="jthi_1-1679519529906.png" /&gt;&lt;/span&gt;&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 );
Clear Log();

dt = Open( "$SAMPLE_DATA/Bands Data.JMP" );

obj = dt &amp;lt;&amp;lt; Explore Outliers(
	Y(
		:proof cut, :viscosity, :caliper, :ink temperature, :humidity, :roughness,
		:blade pressure, :varnish pct, :press speed, :ink pct, :solvent pct,
		:ESA Voltage, :ESA Amperage, :wax, :hardener, :roller durometer,
		:current density, :anode space ratio, :chrome content
	)
);
obj &amp;lt;&amp;lt; k Nearest Neighbor Outliers(K(4));
obj &amp;lt;&amp;lt; Impute Missing(0);
obj &amp;lt;&amp;lt; Save NN Distances;
//obj &amp;lt;&amp;lt; Close Window;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Mar 2023 21:12:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-to-obtain-a-global-anomaly-score-screening-outliers/m-p/615641#M81538</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-03-22T21:12:25Z</dc:date>
    </item>
  </channel>
</rss>

