<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>In Machines We Trust (Posts about machine learning)</title><link>https://inmachineswetrust.com/</link><description></description><atom:link href="https://inmachineswetrust.com/categories/machine-learning.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Sun, 23 Aug 2020 20:35:33 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Using natural language processing to build a spam filter for text messages</title><link>https://inmachineswetrust.com/posts/sms-spam-filter/</link><dc:creator>Red Huq</dc:creator><description>&lt;div&gt;&lt;style type="text/css"&gt;
div.prompt {
	display: none;
}

div.rendered_html table, .rendered_html th, .rendered_html tr, .rendered_html td {
  font-size: 16px;
  border: 1px solid black;
}


&lt;/style&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;After watching the film &lt;em&gt;Arrival&lt;/em&gt;, I developed a deep appreciation for the field of linguistics (also my favorite movie of 2016). Human language is the most unstructured type of data, and yet we effortlessly parse and interpret it, and even generate our own. On the other hand, understanding everyday language is a significant challenge for machines; this is the focus of &lt;strong&gt;natural language processing&lt;/strong&gt; (NLP)—the crossroads between linguistics and AI. In this post, we'll make use of some NLP concepts and combine them with machine learning to build a spam filter for SMS text messages.
&lt;/p&gt;&lt;p&gt;&lt;a href="https://inmachineswetrust.com/posts/sms-spam-filter/"&gt;Read more…&lt;/a&gt; (17 min remaining to read)&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><category>classification</category><category>learning curves</category><category>machine learning</category><category>n-grams</category><category>natural language processing</category><category>nested cross-validation</category><category>nltk</category><category>scikit-learn</category><category>supervised learning</category><category>support vector machines</category><category>tf-idf</category><guid>https://inmachineswetrust.com/posts/sms-spam-filter/</guid><pubDate>Tue, 30 May 2017 13:00:00 GMT</pubDate></item><item><title>Training a machine to determine whether a mushroom is edible</title><link>https://inmachineswetrust.com/posts/mushroom-classification/</link><dc:creator>Red Huq</dc:creator><description>&lt;div&gt;&lt;style type="text/css"&gt;
div.prompt {
	display: none;
}

div.rendered_html table, .rendered_html th, .rendered_html tr, .rendered_html td {
  font-size: 16px;
  border: 1px solid black;
}


&lt;/style&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;It's been awhile since my last blog post but we've been busy with a big move from Houston to Brooklyn. The opportunities in New York City for data science and AI seem endless! I've also been spending some time putting to practice my newly acquired knowledge of machine learning by browsing through open datasets.&lt;/p&gt;
&lt;p&gt;One dataset that piqued my interest is the &lt;a href="http://archive.ics.uci.edu/ml/datasets/Mushroom?ref=datanews.io"&gt;mushroom dataset&lt;/a&gt; from the UCI Machine Learning Repository describing different species from the genera &lt;em&gt;Agaricus&lt;/em&gt; and &lt;em&gt;Lepiota&lt;/em&gt;. The data are taken from The Audubon Society Field Guide to North American Mushrooms, which states "there is no simple rule for determining the edibility of a mushroom". Challenged by this bold claim, I  wanted to explore if a machine could succeed here. In addition to answering this question, this post explores some common issues in machine learning and how to use Python's go-to machine learning library, Scikit-learn, to address them.
&lt;/p&gt;&lt;p&gt;&lt;a href="https://inmachineswetrust.com/posts/mushroom-classification/"&gt;Read more…&lt;/a&gt; (10 min remaining to read)&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><category>classification</category><category>data wrangling</category><category>logistic regression</category><category>machine learning</category><category>nested cross-validation</category><category>scikit-learn</category><category>supervised learning</category><guid>https://inmachineswetrust.com/posts/mushroom-classification/</guid><pubDate>Mon, 15 May 2017 16:00:00 GMT</pubDate></item><item><title>Applying k-means clustering to flow cytometry analysis</title><link>https://inmachineswetrust.com/posts/k-means_clustering/</link><dc:creator>Red Huq</dc:creator><description>&lt;div&gt;&lt;style type="text/css"&gt;
div.prompt {
	display: none;
}

div.rendered_html table, .rendered_html th, .rendered_html tr, .rendered_html td {
  font-size: 16px;
  border: 1px solid black;
}


&lt;/style&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Is it possible for a machine to group together similar data on its own? Absolutely—this is what clustering algorithms are all about. These algorithms fall under a branch of machine learning called &lt;strong&gt;unsupervised learning&lt;/strong&gt;. In this branch, we give a machine an &lt;em&gt;unlabeled&lt;/em&gt; training set containing data regarding the features but not the classes. Algorithms are left to their own devices to discover the underlying structure concealed within the data. This is in stark contrast to &lt;a href="http://machinemadephd.com/posts/building-logistic-regression/"&gt;supervised learning&lt;/a&gt;, where the correct answers are available and utilized to train a predictive model.&lt;/p&gt;
&lt;p&gt;In this post, I'd like to introduce an algorithm called &lt;strong&gt;$k$-means clustering&lt;/strong&gt; and also construct one from scratch. Additionally, I'll demonstrate how this algorithm can be used automate an aspect of a widely used life sciences technique called &lt;strong&gt;flow cytometry&lt;/strong&gt;.
&lt;/p&gt;&lt;p&gt;&lt;a href="https://inmachineswetrust.com/posts/k-means_clustering/"&gt;Read more…&lt;/a&gt; (13 min remaining to read)&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><category>clustering</category><category>k-means</category><category>machine learning</category><category>unsupervised learning</category><guid>https://inmachineswetrust.com/posts/k-means_clustering/</guid><pubDate>Thu, 16 Mar 2017 14:00:00 GMT</pubDate></item><item><title>Building a logistic regression classifier from the ground up</title><link>https://inmachineswetrust.com/posts/building-logistic-regression/</link><dc:creator>Red Huq</dc:creator><description>&lt;div&gt;&lt;style type="text/css"&gt;
div.prompt {
	display: none;
}

div.rendered_html table, .rendered_html th, .rendered_html tr, .rendered_html td {
  font-size: 16px;
  border: 1px solid black;
}


&lt;/style&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;The logistic regression classifier is a widely used machine learning model that predicts the group or category that an observation belongs to. When implementing this model, most people rely on some library or API: just hand over a dataset and out come the predictions. However, I'm not a fan of using black boxes without first understanding what's going on inside. In fact, lifting the hood on this classifier provides a segue to more complex models such as neural networks. Therefore, in this post, I'd like to explore the methodology behind logistic regression classifiers and walk through how to construct one from scratch.
&lt;/p&gt;&lt;p&gt;&lt;a href="https://inmachineswetrust.com/posts/building-logistic-regression/"&gt;Read more…&lt;/a&gt; (15 min remaining to read)&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><category>classification</category><category>gradient descent</category><category>logistic regression</category><category>machine learning</category><category>supervised learning</category><guid>https://inmachineswetrust.com/posts/building-logistic-regression/</guid><pubDate>Mon, 13 Feb 2017 16:00:00 GMT</pubDate></item><item><title>What exactly is data science?</title><link>https://inmachineswetrust.com/posts/what-is-data-science/</link><dc:creator>Red Huq</dc:creator><description>&lt;div&gt;&lt;p&gt;I figured I'd focus my first post on a broad topic and what better way than to discuss what this blog will revolve around: data science! Actually, when I talk to most people about data science, I usually get blank stares. This is understandable because data science is an emerging field—practically everyone has their own definition, so I'd like to begin by sharing mine.
&lt;/p&gt;&lt;p&gt;&lt;a href="https://inmachineswetrust.com/posts/what-is-data-science/"&gt;Read more…&lt;/a&gt; (4 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>data science</category><category>machine learning</category><guid>https://inmachineswetrust.com/posts/what-is-data-science/</guid><pubDate>Mon, 16 Jan 2017 16:00:00 GMT</pubDate></item></channel></rss>