<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Cours DFGSM2 by VLooten</title>
      <link>https://padlet.com/looten/hhewaz1oq5ox</link>
      <description>SVM et random forest</description>
      <language>en-us</language>
      <pubDate>2019-01-09 12:41:00 UTC</pubDate>
      <lastBuildDate>2025-11-10 06:20:31 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>init</title>
         <author>looten</author>
         <link>https://padlet.com/looten/hhewaz1oq5ox/wish/318749245</link>
         <description><![CDATA[<div>install.packages("caret")<br>install.packages("e1071")<br>install.packages("randomForest")<br><br>library(caret)<br>library(e1071)<br>library(randomForest)<br>library(dplyr)<br>library(tidyr)<br><br>data(iris)<br>dtt &lt;- iris</div>]]></description>
         <enclosure url="" />
         <pubDate>2019-01-09 13:33:16 UTC</pubDate>
         <guid>https://padlet.com/looten/hhewaz1oq5ox/wish/318749245</guid>
      </item>
      <item>
         <title>Tirage au sort</title>
         <author>looten</author>
         <link>https://padlet.com/looten/hhewaz1oq5ox/wish/318752539</link>
         <description><![CDATA[<div># Echantillon train<br>set.seed(1987)<br>train_idx &lt;- sample(rownames(dtt),100,F)<br>dtt_train &lt;- dtt[which(rownames(dtt) %in% train_idx),]<br># Echantillon test<br>dtt_test &lt;- dtt[which(!(rownames(dtt) %in% train_idx)),]</div>]]></description>
         <enclosure url="" />
         <pubDate>2019-01-09 13:40:08 UTC</pubDate>
         <guid>https://padlet.com/looten/hhewaz1oq5ox/wish/318752539</guid>
      </item>
      <item>
         <title>GLM</title>
         <author>looten</author>
         <link>https://padlet.com/looten/hhewaz1oq5ox/wish/318758396</link>
         <description><![CDATA[<div>dtt_train$Y &lt;- as.numeric(dtt_train$Species=="setosa")<br>colnames(dtt_train)<br>model_glm &lt;- glm(Y~Sepal.Length + Sepal.Width + Petal.Length+ Petal.Width<br>, data=dtt_train, family="binomial")<br>preds_glm &lt;- predict(model_glm, newdata = dtt_test, type = "response")</div>]]></description>
         <enclosure url="" />
         <pubDate>2019-01-09 13:51:14 UTC</pubDate>
         <guid>https://padlet.com/looten/hhewaz1oq5ox/wish/318758396</guid>
      </item>
      <item>
         <title>Trouvez les définitions de :</title>
         <author>looten</author>
         <link>https://padlet.com/looten/hhewaz1oq5ox/wish/318761360</link>
         <description><![CDATA[<div>Recall (rappel)<br>Precision<br>F-measure / F1-score<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2019-01-09 13:56:51 UTC</pubDate>
         <guid>https://padlet.com/looten/hhewaz1oq5ox/wish/318761360</guid>
      </item>
      <item>
         <title>fonction</title>
         <author>looten</author>
         <link>https://padlet.com/looten/hhewaz1oq5ox/wish/318769407</link>
         <description><![CDATA[<div>evaluate &lt;- function(TP,FP,TN,FN){<br>  precision &lt;- TP/(TP+FP)<br>  recall &lt;- TP/(TP+FN)<br>  fscore &lt;- 2*(precision*recall)/(precision+recall)<br>  return(list(precision=precision,<br>              recall=recall,<br>              fscore=fscore))<br>}<br><br>evaluate(TP=19,FP=0,TN=31,FN=0)</div>]]></description>
         <enclosure url="" />
         <pubDate>2019-01-09 14:10:29 UTC</pubDate>
         <guid>https://padlet.com/looten/hhewaz1oq5ox/wish/318769407</guid>
      </item>
      <item>
         <title></title>
         <author>looten</author>
         <link>https://padlet.com/looten/hhewaz1oq5ox/wish/318769878</link>
         <description><![CDATA[<div>preds_setosa &lt;- preds_glm&gt;0.5<br>table(preds_setosa, dtt_test$Species)</div>]]></description>
         <enclosure url="" />
         <pubDate>2019-01-09 14:11:16 UTC</pubDate>
         <guid>https://padlet.com/looten/hhewaz1oq5ox/wish/318769878</guid>
      </item>
      <item>
         <title></title>
         <author>looten</author>
         <link>https://padlet.com/looten/hhewaz1oq5ox/wish/318782558</link>
         <description><![CDATA[<div>library(e1071)<br>dtt_train$Y &lt;- as.factor(dtt_train$Y)<br><br>model_svm &lt;- svm(Y~Sepal.Length + Sepal.Width + Petal.Length+ Petal.Width,<br>        data=dtt_train,probability=T)<br>preds_svm &lt;- predict(model_svm,newdata = dtt_test,<br>                     probability=T)                <br><br># attr(preds_svm,"probabilities")[,2]<br>preds_setosa2 &lt;- preds_svm<br>table(preds_setosa2, dtt_test$Species)<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2019-01-09 14:30:56 UTC</pubDate>
         <guid>https://padlet.com/looten/hhewaz1oq5ox/wish/318782558</guid>
      </item>
      <item>
         <title>Explicabilité</title>
         <author>looten</author>
         <link>https://padlet.com/looten/hhewaz1oq5ox/wish/318791296</link>
         <description><![CDATA[<div><a href="https://www.ncbi.nlm.nih.gov/pubmed/27723811">https://www.ncbi.nlm.nih.gov/pubmed/27723811</a></div>]]></description>
         <enclosure url="" />
         <pubDate>2019-01-09 14:43:04 UTC</pubDate>
         <guid>https://padlet.com/looten/hhewaz1oq5ox/wish/318791296</guid>
      </item>
      <item>
         <title></title>
         <author>looten</author>
         <link>https://padlet.com/looten/hhewaz1oq5ox/wish/318809750</link>
         <description><![CDATA[<div>install.packages("rpart")<br>install.packages("partykit")<br>library(rpart)<br>library("partykit")<br>model_arbre &lt;- rpart(Species~Sepal.Length + Sepal.Width + Petal.Length+ Petal.Width,<br>                         data=dtt_train)<br>plot(as.party(model_arbre))</div>]]></description>
         <enclosure url="" />
         <pubDate>2019-01-09 15:09:24 UTC</pubDate>
         <guid>https://padlet.com/looten/hhewaz1oq5ox/wish/318809750</guid>
      </item>
      <item>
         <title></title>
         <author>looten</author>
         <link>https://padlet.com/looten/hhewaz1oq5ox/wish/318817444</link>
         <description><![CDATA[<div>model_rf &lt;- randomForest(Y~Sepal.Length + Sepal.Width + Petal.Length+ Petal.Width,<br>             data=dtt_train)<br>preds_rf &lt;- predict(model_rf,newdata = dtt_test,<br>                     probability=T) <br>preds_setosa3 &lt;- preds_rf <br>table(preds_setosa3, dtt_test$Species)</div>]]></description>
         <enclosure url="" />
         <pubDate>2019-01-09 15:19:48 UTC</pubDate>
         <guid>https://padlet.com/looten/hhewaz1oq5ox/wish/318817444</guid>
      </item>
      <item>
         <title></title>
         <author>looten</author>
         <link>https://padlet.com/looten/hhewaz1oq5ox/wish/318820937</link>
         <description><![CDATA[<div>varImpPlot(model_rf)</div>]]></description>
         <enclosure url="" />
         <pubDate>2019-01-09 15:24:53 UTC</pubDate>
         <guid>https://padlet.com/looten/hhewaz1oq5ox/wish/318820937</guid>
      </item>
   </channel>
</rss>
