<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Data &amp; ML | Scott Miner</title><link>https://scottminer.rbind.io/tags/data--ml/</link><atom:link href="https://scottminer.rbind.io/tags/data--ml/index.xml" rel="self" type="application/rss+xml"/><description>Data &amp; ML</description><generator>HugoBlox Kit (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Thu, 07 Nov 2024 00:00:00 +0000</lastBuildDate><image><url>https://scottminer.rbind.io/media/sharing.png</url><title>Data &amp; ML</title><link>https://scottminer.rbind.io/tags/data--ml/</link></image><item><title>IMDb Sentiment Classifier</title><link>https://scottminer.rbind.io/projects/imdb-sentiment-classifier/</link><pubDate>Thu, 07 Nov 2024 00:00:00 +0000</pubDate><guid>https://scottminer.rbind.io/projects/imdb-sentiment-classifier/</guid><description>&lt;p&gt;A sentiment analysis model trained on the IMDb Movie Reviews dataset to classify reviews as positive or negative.&lt;/p&gt;
&lt;h2 id="approach"&gt;Approach&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Preprocessing&lt;/strong&gt;: tokenization, vocabulary building, and sequence padding of raw review text.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Embeddings&lt;/strong&gt;: pre-trained GloVe word vectors give the network a head start on word meaning.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Model&lt;/strong&gt;: a bidirectional LSTM reads each review in both directions, with batch normalization and dropout-style regularization to improve accuracy and generalization.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Training and evaluation&lt;/strong&gt;: scripted training loop with held-out evaluation and metrics reporting.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="what-it-demonstrates"&gt;What it demonstrates&lt;/h2&gt;
&lt;p&gt;End-to-end NLP with TensorFlow and Keras: text preprocessing, transfer learning with embeddings, recurrent architectures, and disciplined model evaluation.&lt;/p&gt;</description></item><item><title>Word2Vec Skip-Gram in TensorFlow 2</title><link>https://scottminer.rbind.io/projects/word2vec-skipgram-tensorflow/</link><pubDate>Tue, 11 Apr 2023 00:00:00 +0000</pubDate><guid>https://scottminer.rbind.io/projects/word2vec-skipgram-tensorflow/</guid><description>&lt;p&gt;An implementation of the Word2Vec skip-gram algorithm in TensorFlow 2.0 that learns vector representations of words from a slice of Wikipedia (the text8 dataset).&lt;/p&gt;
&lt;h2 id="how-it-works"&gt;How it works&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;The text8 corpus is downloaded (a helper script fetches it on demand) and processed into a vocabulary, dropping rare words below a frequency threshold.&lt;/li&gt;
&lt;li&gt;A skip-gram model is trained with stochastic gradient descent and noise-contrastive estimation (NCE) loss.&lt;/li&gt;
&lt;li&gt;During training the model is evaluated by finding the nearest neighbors of a set of test words using cosine similarity between their embeddings.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The implementation follows the approach described in Mikolov et al., &lt;em&gt;Efficient Estimation of Word Representations in Vector Space&lt;/em&gt; (2013), and builds on Aymeric Damien&amp;rsquo;s TensorFlow examples.&lt;/p&gt;
&lt;h2 id="what-it-demonstrates"&gt;What it demonstrates&lt;/h2&gt;
&lt;p&gt;Working knowledge of word embeddings, negative-sampling style objectives, and writing training and evaluation loops directly against the TensorFlow 2 API.&lt;/p&gt;</description></item><item><title>Universal EDA</title><link>https://scottminer.rbind.io/projects/universal-eda/</link><pubDate>Sat, 15 Apr 2023 00:00:00 +0000</pubDate><guid>https://scottminer.rbind.io/projects/universal-eda/</guid><description>&lt;p&gt;Universal-EDA provides an easy-to-use interface for exploratory data analysis (EDA) and data loading so that the first hour with a new dataset is spent looking at the data rather than writing boilerplate.&lt;/p&gt;
&lt;h2 id="background"&gt;Background&lt;/h2&gt;
&lt;p&gt;The project started while updating an older linear regression project and discovering that the Boston Housing dataset had been removed from newer versions of scikit-learn. Universal-EDA keeps classic teaching datasets available and wraps the repetitive first steps of any analysis.&lt;/p&gt;
&lt;h2 id="features"&gt;Features&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;DataExplorer&lt;/code&gt;&lt;/strong&gt;: summary statistics, missing-value reports, and quick visualizations for any DataFrame.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;DataLoader&lt;/code&gt;&lt;/strong&gt;: loads common datasets from scikit-learn and converts DataFrames to CSV files.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;src&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;DataExplorer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;DataLoader&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;DataLoader&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;load_toy_dataset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;boston&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;DataExplorer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;basic_info&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="what-it-demonstrates"&gt;What it demonstrates&lt;/h2&gt;
&lt;p&gt;Packaging reusable analysis code into clean classes, and designing small APIs that make day-to-day data work faster.&lt;/p&gt;</description></item><item><title>Sequence Prediction ANN</title><link>https://scottminer.rbind.io/projects/sequence-prediction-ann/</link><pubDate>Thu, 27 Apr 2023 00:00:00 +0000</pubDate><guid>https://scottminer.rbind.io/projects/sequence-prediction-ann/</guid><description>&lt;p&gt;A compact artificial neural network that learns to predict the next value in a numeric sequence, a small-scale version of the time-series forecasting problem.&lt;/p&gt;
&lt;h2 id="design"&gt;Design&lt;/h2&gt;
&lt;p&gt;The code is deliberately modular so each concern can be swapped or tested on its own:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Data preparation&lt;/strong&gt;: turns raw sequences into supervised learning windows and splits train and test sets.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Architecture&lt;/strong&gt;: defines the layers and activation functions of the network.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Training&lt;/strong&gt;: runs the optimization loop and reports evaluation metrics.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="what-it-demonstrates"&gt;What it demonstrates&lt;/h2&gt;
&lt;p&gt;The fundamentals of supervised sequence learning, clean separation of concerns in machine learning code, and model evaluation with scikit-learn utilities.&lt;/p&gt;</description></item><item><title>Healthcare Expert System</title><link>https://scottminer.rbind.io/projects/healthcare-expert-system/</link><pubDate>Mon, 19 Jun 2023 00:00:00 +0000</pubDate><guid>https://scottminer.rbind.io/projects/healthcare-expert-system/</guid><description>&lt;p&gt;A rule-based expert system that models the decision logic used in heart failure telemonitoring. Given patient-reported measurements and symptoms, the system applies clinical rules to suggest self-care actions and flag situations that need a clinician&amp;rsquo;s attention.&lt;/p&gt;
&lt;h2 id="how-it-works"&gt;How it works&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Domain knowledge is encoded as &lt;strong&gt;rules&lt;/strong&gt; in Pyke, a Python knowledge engine.&lt;/li&gt;
&lt;li&gt;Patient facts (weight changes, blood pressure, symptoms) are asserted into the knowledge base.&lt;/li&gt;
&lt;li&gt;The inference engine fires matching rules to produce recommendations and alerts.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="what-it-demonstrates"&gt;What it demonstrates&lt;/h2&gt;
&lt;p&gt;Symbolic AI and knowledge representation as a complement to statistical machine learning, and translating a real clinical workflow into explicit, auditable rules.&lt;/p&gt;</description></item></channel></rss>