Posts

Showing posts from June, 2024

GSoC'24 Progress: Implementing 'partialDependence' function for ClassificationKNN class

Hello everyone! I’m excited to share the latest updates on my project. Here’s what I’ve been working on recently: Achievements Completion of the PartialDependence Function:  I have successfully implemented the partialDependence function for the ClassificationKNN model. This function is critical for visualizing and understanding the relationship between individual feature values and the predicted outcomes. It helps interpret the influence of each feature on the prediction, providing valuable insights for model refinement and feature engineering. Current Focus Creating the ClassificationDiscriminant Class:  With the partialDependence function now complete, my next task is to work on the ClassificationDiscriminant class. This class will be essential for extending the model's functionality to include discriminant analysis, which will enhance the model's ability to classify data because it helps find the linear combination of features that best separates different classes. Stay tu...

GSoC'24 Progress: Implementing 'margin' function for ClassificationKNN class

Hello everyone! I'm thrilled to share the updates on the project. Let me walk you through what I've been up to: Achievements 1. Completion of the Loss Function Implementation: I successfully finalized the implementation of the 'loss' function for the ClassificationKNN model. This function is pivotal as it measures the error between predicted and actual class labels, steering the model toward improved accuracy. My mentor, Andreas, fixed the bug in the 'Prior' property, which initially hindered the normalization of observation weights; the 'loss' function now performs as expected. 2. Implementation of the Margin function: Besides the 'loss' function, I have implemented the 'margin' function. The function calculates the difference between the predicted probability for the true class and the highest predicted probability for the false classes. Current Focus Implementing the PartialDependence function: My current task involves implementing the...

GSoC'24 Progress: Implementing 'loss' function for 'ClassificationKNN' class

I am excited to share the latest progress on my project. Since my previous blog post, I have been working diligently on implementing a 'loss' function for the 'ClassificationKNN' model. This journey has been challenging and rewarding, pushing me to overcome several obstacles. Achievements Implementation   of the 'loss' Function: I successfully implemented the 'loss' function for the 'ClassificationKNN' model. This function is crucial as it measures error between the predicted and actual class labels, guiding the model towards better performance.  Overcoming Challenges: One of the main difficulties I encountered was normalizing the weights of observations. I discovered a bug in the 'Prior' property of the 'ClassificationKNN' object, which was supposed to help normalize the weights. This bug is a significant roadblock.  Next Steps Fixing the Bug: I will delve into the 'ClassificationKNN' function to locate and correct the er...