Entradas

Convolutional Neural Network - Microplastic image classification PLASTISCAN

Imagen
  AI for Microplastic Images Classification   I want to present our final project for the Diploma in Advanced Artificial Intelligence offered by Samsung Innovation Campus and Universidad de Málaga . We decided to create our team under the name "Minerva Dev Team". We chose this name because we admire the figure of Minerva, goddess of wisdom, the arts, education, and justice. It seemed to us that this name best defined a team of five women, each so different yet contributing the best of themselves to create something beautiful from this experience. The project is called PlastiScan AI, a model designed, trained, and optimized with our own convolutional neural network. PlastiScan is responsible for analyzing images of water samples for the detection and classification of microplastic particles in them. Our purpose is to create a tool for research into such an important and current environmental issue, with the aim of helping to control pollution sources, understandin...

Stock Price Prediction (Apple) with SimpleRNN

Imagen
  Stock Price Prediction (Apple) with SimpleRNN Recurrent neural networks (RNN) are a class of neural networks that is powerful for modeling sequence data such as time series or natural language. Schematically, a RNN layer uses a for loop to iterate over the timesteps of a sequence, while maintaining an internal state that encodes information about the timesteps it has seen so far. In this exercise I'm going to use  keras.layers.SimpleRNN , a fully-connected RNN where the output from previous timestep is to be fed to next timestep. By default, the output of a RNN layer contains a single vector per sample. This vector is the RNN cell output corresponding to the last timestep, containing information about the entire input sequence. The shape of this output is (batch_size, units) where units corresponds to the units argument passed to the layer's constructor. A RNN layer can also return the entire sequence of outputs for each sample (one vector per timestep per sample), if...

Supervised Classification | hyperparameter optimization and voting ensemble

Imagen
  Supervised Classification | hyperparameter optimization and voting ensemble Using the Titanic dataset, in this exercise, we will perform GridSearchCV on five different classification algorithms to fit the models using the best-performing hyperparameters. Afterwards, we will use an ensemble voting method, a technique in machine learning where multiple individual models are combined to make predictions.  The idea behind ensemble methods is that by combining the predictions of multiple models, overall performance can be better than that of individual models. In this case we will use: Soft Voting: In this approach, each model provides a probability or confidence score for each class, and the scores are averaged or weighted to make the final decision. This is particularly useful when individual models can produce probability estimates. Hard Voting: Each model in the ensemble predicts a class, and the class with the most votes is chosen as the final prediction. #import necessary...

Supervised Learning | Binary Classification with Random Forest Classifier

Imagen
Binary Classification with Random Forest Classifier We will walk through the process of deploying a Random Forest Classifier model. We'll use a model trained on the Titanic dataset to predict passenger survival and explain each step along the way. Step 1: Model Selection and Training A Random Forest Classifier was chosen as the model for this binary classification problem. The model was trained on the preprocessed dataset with a random seed for reproducibility. The goal was to predict whether a passenger survived or not based on various features. Step 2: Data Preprocessing Before training the model, I preprocessed the data to clean and prepare it for analysis. This included: Normalizing passenger names. Extracting ticket numbers and ticket items. Handling missing data in age and embarked columns. One-hot encoding categorical variables like "Sex" and "Embarked. Step 3: Feature Selection The model used a combination of numerical features like "Pclass," ...