<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sklearn on TUTYSARA'S SPACE</title><link>https://www.tutysara.net/tags/sklearn/</link><description>Recent content in Sklearn on TUTYSARA'S SPACE</description><generator>Hugo</generator><language>en-EN</language><copyright>(c) 2026 tutysara</copyright><lastBuildDate>Wed, 07 Feb 2018 00:00:00 +0000</lastBuildDate><atom:link href="https://www.tutysara.net/tags/sklearn/index.xml" rel="self" type="application/rss+xml"/><item><title>Themes and Extensions for Jupyter notebook</title><link>https://www.tutysara.net/posts/2018/02/07/themes-and-extensions-for-jupyter-notebook/</link><pubDate>Wed, 07 Feb 2018 00:00:00 +0000</pubDate><guid>https://www.tutysara.net/posts/2018/02/07/themes-and-extensions-for-jupyter-notebook/</guid><description>&lt;p&gt;I am taking the wonderful &lt;a href="http://course.fast.ai/"&gt;fast.ai&lt;/a&gt; course thought by Jermey Howard and Rachel.
We use jupyter notebooks in classes and it is always nice to see how Jermey&amp;rsquo;s notebook looks.&lt;/p&gt;
&lt;p&gt;It has few tweaks like&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;collapsible headings&lt;/li&gt;
&lt;li&gt;better tables and fonts&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Learnt that he uses a themes for the visual customizations and an extensions to allow collapsing of headers from his reply in &lt;a href="http://forums.fast.ai/t/collapsable-expandable-jupyter-cells/205/5"&gt;forums&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The theme script can be installed from &lt;a href="https://github.com/dunovank/jupyter-themes"&gt;jupyter-themes repo&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Use Skipgrams with sklearn CountVectorizer and TfidfVectorizer</title><link>https://www.tutysara.net/posts/2018/01/07/use-skipgrams-with-sklearn-countvectorizer-and-tfidfvectorizer/</link><pubDate>Sun, 07 Jan 2018 00:00:00 +0000</pubDate><guid>https://www.tutysara.net/posts/2018/01/07/use-skipgrams-with-sklearn-countvectorizer-and-tfidfvectorizer/</guid><description>&lt;p&gt;We don&amp;rsquo;t have an implementation for skipgrams in sklearn. This post covers how to use the skipgram function in &lt;code&gt;nltk&lt;/code&gt; with sklearn&amp;rsquo;s CountVectorizer and TfidfVectorizer&lt;/p&gt;
&lt;p&gt;We are going to create a skipgram tokenizer that can be passed to the &lt;code&gt;tokenizer&lt;/code&gt; parameter of the vectorizer.&lt;/p&gt;
&lt;p&gt;Create a basic tokenizer that can split the original strings to tokesn.
Tokenizer can be just &lt;code&gt;.split()&lt;/code&gt; or a function to filter non-alpahbets etc. We can use tokenizer as below&lt;/p&gt;</description></item></channel></rss>