<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chukwuonye Justice Alex (CeeJay) on Medium]]></title>
        <description><![CDATA[Stories by Chukwuonye Justice Alex (CeeJay) on Medium]]></description>
        <link>https://medium.com/@j.chukwuony?source=rss-888bf9570e81------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dTAMvaGXej3F6_u_jD99Dw.jpeg</url>
            <title>Stories by Chukwuonye Justice Alex (CeeJay) on Medium</title>
            <link>https://medium.com/@j.chukwuony?source=rss-888bf9570e81------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:06:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@j.chukwuony/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ If We Could Go Back in Time: Predicting Bitcoin with Machine Learning]]></title>
            <link>https://medium.com/@j.chukwuony/if-we-could-go-back-in-time-predicting-bitcoin-with-machine-learning-ef929470a709?source=rss-888bf9570e81------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef929470a709</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[predictions]]></category>
            <dc:creator><![CDATA[Chukwuonye Justice Alex (CeeJay)]]></dc:creator>
            <pubDate>Tue, 27 May 2025 14:53:59 GMT</pubDate>
            <atom:updated>2025-05-27T14:53:59.996Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*4c3trKZcYvh7dPqKY1EFcw.jpeg" /></figure><p><strong>“We have to go back, Marty!”</strong><br> <strong>“To stop a disaster?”</strong><br> <strong>“No, to buy Bitcoins.”</strong></p><p>We’ve all seen the memes, and if you’re anything like me, you’ve probably wished for a time machine more than once — especially during those times Bitcoin jumped 400% in a few months.</p><p>Well, I may not have a DeLorean, but I <em>do</em> have Python, TensorFlow, and a curiosity for machine learning. So I did the next best thing: I built a <strong>time series forecasting model</strong> to predict Bitcoin prices and see if we can get ahead of the market without breaking the space-time continuum.</p><h3>🧠<strong> What Is Time Series Forecasting?</strong></h3><p>Time Series Forecasting is a method used to predict future values based on previously observed data points — think stock prices, weather patterns, or cryptocurrency markets. Unlike typical regression problems, time series data is <strong>ordered by time</strong>, so preserving that structure is crucial.</p><h3>📦<strong> Data &amp; Preprocessing: No Flux Capacitor Needed</strong></h3><p>I pulled historical BTC-USD data from Yahoo Finance, cleaned it, and scaled it for neural network training.</p><p>Key preprocessing steps:</p><ul><li><strong>Dropped non-relevant features</strong></li><li><strong>Scaled</strong> the ‘Close’ prices between 0 and 1</li><li><strong>Windowed the data</strong> into 30-day sequences to predict the next price</li></ul><pre># Example: scaling BTC prices<br>from sklearn.preprocessing import MinMaxScaler<br>scaler = MinMaxScaler()<br>scaled = scaler.fit_transform(df[&#39;Close&#39;].values.reshape(-1, 1))</pre><h3>⚙️ <strong>Input Pipeline: Teaching the Model to Remember Time</strong></h3><p>Using TensorFlow’s tf.data API, I structured the dataset into overlapping windows of 30 time steps. Each window acts like a “memory” for the model.</p><pre>def create_windowed_dataset(series, window_size):<br>    ds = tf.data.Dataset.from_tensor_slices(series)<br>    ds = ds.window(window_size + 1, shift=1, drop_remainder=True)<br>    ds = ds.flat_map(lambda w: w.batch(window_size + 1))<br>    ds = ds.map(lambda w: (w[:-1], w[-1]))<br>    return ds.batch(32).prefetch(1)</pre><h3>🤖 <strong>Model Architecture: No Time Machine, Just Neural Nets</strong></h3><p>To keep it lean, I started with a simple dense model:</p><pre>model = tf.keras.Sequential([<br>    tf.keras.layers.Dense(64, activation=&#39;relu&#39;, input_shape=[30]),<br>    tf.keras.layers.Dropout(0.2),<br>    tf.keras.layers.Dense(1)<br>])</pre><p>It’s not fancy like an LSTM or Transformer, but it learned patterns surprisingly well.</p><h3>📈 <strong>Results: Can We Actually Predict BTC?</strong></h3><p>After training on 80% of the data:</p><ul><li><strong>MAE</strong>: ~300 USD</li><li><strong>Loss</strong>: Low and stable after 50 epochs</li><li><strong>Visual Comparison</strong>: Predictions followed the trend of actual BTC fairly closely</li></ul><p><em>Note: Actual vs Predicted BTC prices (normalized)</em></p><h3>🧾 <strong>Conclusion: What I Learned on This Trip to the Past</strong></h3><ul><li>Predicting Bitcoin is like weather forecasting — it’s never perfect, but patterns do exist.</li><li>Even simple models can reveal trends if trained on the right data.</li><li>Neural nets won’t make you rich overnight, but they <em>will</em> make you smarter.</li></ul><p>If you’re a trader, researcher, or just a time-travel meme fan like me, I encourage you to explore this intersection of finance and machine learning.</p><h3>💬<strong> Let’s Talk</strong></h3><p>Did this project spark some ideas? Want to collaborate on crypto prediction or AI trading models or any AI Model at all? Let’s connect!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef929470a709" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering TensorFlow: Embracing the Future of Machine Learning]]></title>
            <link>https://medium.com/@j.chukwuony/mastering-tensorflow-embracing-the-future-of-machine-learning-4bfc3f423fe4?source=rss-888bf9570e81------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bfc3f423fe4</guid>
            <category><![CDATA[tensorflow-lite]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[tensorflowjs]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Chukwuonye Justice Alex (CeeJay)]]></dc:creator>
            <pubDate>Fri, 31 Jan 2025 19:34:50 GMT</pubDate>
            <atom:updated>2025-01-31T19:35:19.742Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*itE2cCNY7Is7W2b_ET9c9g.jpeg" /></figure><p>Machine learning frameworks have become indispensable tools in the modern tech landscape, and few names shine as brightly as TensorFlow. But, if you’ve ever been handed a legacy system or project and heard, “Yeah, if you could just rewrite everything using TensorFlow, that’d be great,” you’re not alone. This humorous yet all-too-relatable meme captures the essence of transitioning to this powerful tool.</p><p>In this blog post, we’ll explore why TensorFlow has become a cornerstone of machine learning and how you can navigate rewriting or building projects using it effectively.</p><h3>Why TensorFlow?</h3><p>TensorFlow, developed by Google, is one of today&#39;s most popular machine learning frameworks. It’s open-source, highly scalable, and offers robust tools for everything from deep learning to production-ready deployment. Here are some reasons it’s worth embracing:</p><ul><li><strong>Flexibility</strong>: TensorFlow supports multiple languages, including Python, C++, and JavaScript, allowing you to integrate it across platforms.</li><li><strong>Scalability</strong>: Whether you’re running on a single machine or a distributed system, TensorFlow handles scaling effortlessly.</li><li><strong>Prebuilt Tools</strong>: TensorFlow comes with TensorFlow Extended (TFX), TensorFlow Lite, and TensorFlow.js, catering to deployment on mobile devices, web browsers, and more.</li></ul><h3>Classification Methods with TensorFlow</h3><p>Classification is a cornerstone of machine learning tasks, and TensorFlow provides versatile tools to implement it effectively. Here, we’ll walk through the most commonly used classification methods with TensorFlow.</p><h3>1. Logistic Regression</h3><p>Logistic regression is a simple yet powerful classification method. In TensorFlow, you can implement it using the following code:</p><pre>import tensorflow as tf<br>from tensorflow.keras.models import Sequential<br>from tensorflow.keras.layers import Dense</pre><pre># Create a simple logistic regression model<br>model = Sequential([<br>    Dense(1, activation=&#39;sigmoid&#39;, input_shape=(input_dim,))<br>])</pre><pre>model.compile(optimizer=&#39;adam&#39;, loss=&#39;binary_crossentropy&#39;, metrics=[&#39;accuracy&#39;])<br>model.fit(X_train, y_train, epochs=10, batch_size=32)</pre><h3>2. Neural Networks</h3><p>For more complex classification tasks, neural networks are the go-to approach:</p><pre>model = Sequential([<br>    Dense(128, activation=&#39;relu&#39;, input_shape=(input_dim,)),<br>    Dense(64, activation=&#39;relu&#39;),<br>    Dense(num_classes, activation=&#39;softmax&#39;)<br>])</pre><pre>model.compile(optimizer=&#39;adam&#39;, loss=&#39;sparse_categorical_crossentropy&#39;, metrics=[&#39;accuracy&#39;])<br>model.fit(X_train, y_train, epochs=20, batch_size=32)</pre><p>This architecture can be scaled up for larger datasets and more features.</p><h3>3. Convolutional Neural Networks (CNNs)</h3><p>CNNs are ideal for image classification tasks. TensorFlow makes it straightforward:</p><pre>from tensorflow.keras.layers import Conv2D, MaxPooling2D, Flatten</pre><pre>model = Sequential([<br>    Conv2D(32, (3, 3), activation=&#39;relu&#39;, input_shape=(img_height, img_width, channels)),<br>    MaxPooling2D((2, 2)),<br>    Flatten(),<br>    Dense(128, activation=&#39;relu&#39;),<br>    Dense(num_classes, activation=&#39;softmax&#39;)<br>])</pre><pre>model.compile(optimizer=&#39;adam&#39;, loss=&#39;sparse_categorical_crossentropy&#39;, metrics=[&#39;accuracy&#39;])<br>model.fit(X_train, y_train, epochs=15, batch_size=32)</pre><h3>4. Recurrent Neural Networks (RNNs)</h3><p>For sequential data like time series or text, RNNs are highly effective:</p><pre>from tensorflow.keras.layers import SimpleRNN, Embedding</pre><pre>model = Sequential([<br>    Embedding(input_dim=vocab_size, output_dim=128, input_length=max_len),<br>    SimpleRNN(128, activation=&#39;tanh&#39;),<br>    Dense(num_classes, activation=&#39;softmax&#39;)<br>])</pre><pre>model.compile(optimizer=&#39;adam&#39;, loss=&#39;sparse_categorical_crossentropy&#39;, metrics=[&#39;accuracy&#39;])<br>model.fit(X_train, y_train, epochs=10, batch_size=64)</pre><h3>5. Transfer Learning</h3><p>Using pre-trained models can significantly boost classification performance. TensorFlow’s keras.applications module provides access to popular pre-trained models like ResNet and MobileNet:</p><pre>from tensorflow.keras.applications import MobileNetV2<br>from tensorflow.keras.layers import GlobalAveragePooling2D</pre><pre>base_model = MobileNetV2(weights=&#39;imagenet&#39;, include_top=False, input_shape=(224, 224, 3))<br>base_model.trainable = False</pre><pre>model = Sequential([<br>    base_model,<br>    GlobalAveragePooling2D(),<br>    Dense(num_classes, activation=&#39;softmax&#39;)<br>])</pre><pre>model.compile(optimizer=&#39;adam&#39;, loss=&#39;sparse_categorical_crossentropy&#39;, metrics=[&#39;accuracy&#39;])<br>model.fit(X_train, y_train, epochs=10, batch_size=32)</pre><h3>Lessons Learned</h3><p>TensorFlow simplifies classification tasks while allowing for high customization. Whether building models from scratch or leveraging pre-trained architectures, the framework’s versatility makes it a powerful choice for machine learning practitioners.</p><h3>Conclusion</h3><p>Transitioning to TensorFlow is not just about adapting to a new framework; it’s an opportunity to optimize and future-proof your system. TensorFlow’s classification methods showcase the strength of its API and its ability to handle diverse tasks efficiently.</p><p>Stay tuned for more posts where we’ll dive deeper into advanced machine-learning techniques and real-world applications!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bfc3f423fe4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Activation Functions in Machine Learning]]></title>
            <link>https://medium.com/@j.chukwuony/understanding-activation-functions-in-machine-learning-8a138c55591b?source=rss-888bf9570e81------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a138c55591b</guid>
            <category><![CDATA[machine-learning-ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[activation-functions]]></category>
            <dc:creator><![CDATA[Chukwuonye Justice Alex (CeeJay)]]></dc:creator>
            <pubDate>Thu, 23 Jan 2025 15:21:47 GMT</pubDate>
            <atom:updated>2025-01-23T15:21:47.094Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*UTLekFovjAXa-Q9pixOnWQ.jpeg" /></figure><p>Activation functions are a fundamental part of neural networks, enabling them to learn complex relationships and solve diverse problems. Without activation functions, neural networks would simply compute linear combinations of inputs, drastically limiting their power. This post explores activation functions, their purpose, and a comparison of some of the most widely used ones.</p><h3>What Are Activation Functions?</h3><p>In a neural network, activation functions are applied to the output of neurons to introduce non-linearity. This non-linearity allows the network to approximate complex functions, making it capable of solving problems like image recognition, natural language processing, and more.</p><h3>Why Are Activation Functions Necessary?</h3><ol><li><strong>Introducing Non-linearity</strong>: Without them, a neural network would behave like a linear model, irrespective of the number of layers.</li><li><strong>Improving Expressiveness</strong>: Activation functions enable networks to learn complex mappings from inputs to outputs.</li><li><strong>Normalizing Outputs</strong>: Functions like Sigmoid and Softmax help normalize outputs, making them interpretable as probabilities.</li></ol><h3>Types of Activation Functions</h3><p>Let’s examine the most commonly used activation functions, their behaviour, and ideal use cases.</p><h3>1. Binary Step Function</h3><ul><li><strong>Definition</strong>: Outputs 1 if the input is above a threshold, otherwise 0.</li><li><strong>Use Case</strong>: Early perceptrons and simple classification tasks.</li><li><strong>Strength</strong>: Simplicity.</li><li><strong>Limitation</strong>: Non-differentiable, making it unsuitable for gradient-based optimization.</li></ul><h3>2. Linear Function</h3><ul><li><strong>Definition</strong>: Outputs a linear transformation of the input.</li><li><strong>Use Case</strong>: Regression tasks.</li><li><strong>Strength</strong>: Retains proportional relationships.</li><li><strong>Limitation</strong>: Cannot introduce non-linearity, reducing the network’s complexity.</li></ul><h3>3. Sigmoid Function</h3><ul><li><strong>Definition</strong>: Maps inputs to a range between 0 and 1.</li><li><strong>Use Case</strong>: Binary classification and probabilistic outputs.</li><li><strong>Strength</strong>: Smooth and differentiable.</li><li><strong>Limitation</strong>: Suffering from the vanishing gradient problem for large or small inputs.</li></ul><h3>4. Tanh (Hyperbolic Tangent) Function</h3><ul><li><strong>Definition</strong>: A scaled version of the Sigmoid function, with outputs between -1 and 1.</li><li><strong>Use Case</strong>: Hidden layers in neural networks.</li><li><strong>Strength</strong>: Outputs centered around 0, which can aid optimization.</li><li><strong>Limitation</strong>: Also affected by vanishing gradients.</li></ul><h3>5. ReLU (Rectified Linear Unit)</h3><ul><li><strong>Definition</strong>: Outputs the input directly if it is positive, otherwise 0.</li><li><strong>Use Case</strong>: Hidden layers in deep networks, especially convolutional neural networks.</li><li><strong>Strength</strong>: Computationally efficient and helps mitigate the vanishing gradient problem.</li><li><strong>Limitation</strong>: This can lead to the “dying ReLU” problem where neurons become inactive.</li></ul><h3>6. Softmax Function</h3><ul><li><strong>Definition</strong>: Converts logits into probabilities that sum to 1.</li><li><strong>Use Case</strong>: Multi-class classification.</li><li><strong>Strength</strong>: Outputs probabilities, useful for decision-making.</li><li><strong>Limitation</strong>: Computationally expensive for large output spaces.</li></ul><h3>Choosing the Right Activation Function</h3><p>The selection of an activation function depends on the problem at hand:</p><ol><li><strong>Classification</strong>: Use Sigmoid for binary problems and Softmax for multi-class tasks.</li><li><strong>Hidden Layers</strong>: ReLU is the go-to choice due to its efficiency and effectiveness.</li><li><strong>Output Layer in Regression</strong>: Use a linear activation function.</li></ol><h3>Conclusion</h3><p>Activation functions are the unsung heroes of neural networks, introducing the complexity and flexibility needed to solve challenging problems. By understanding their properties and limitations, you can make informed decisions about which function best suits your specific application.</p><p>What’s your favourite activation function and why? Let’s discuss this in the comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a138c55591b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>