How to Implement the Use Case Correctly
- Field of View
- Stable Infrastructure
- Minimal Occlusion
- No Manual Calibration
- With a good setup, half of the complexity and noise can be eliminated.
Deep Learning - Machine Learning - Data(base), NLP, Video - SQL Learning's - Startups - (Learn - Code - Coach - Teach - Innovate) - Retail - Supply Chain
How to Implement the Use Case Correctly
As I wrap up my consulting tenure, I reflect on my success stories in the past 4 years. Here are some key projects that serve as my badges of success:
Bundle Recommendations Project #1 - Bundle recommendations for a specialty retailer of children’s apparel, from newborns to pre-teens (2020) Work/Impact - Transitioned from automated merchandiser-based recommendations to ML-based bundle recommendations. Achieved a 100% match with the ML approach. For a category level, we analyzed 6 months of transactions, comprising 1.5 million orders, and generated recommendations in 15 minutes.
Performance Optimization Project #2 (2021) - For a multinational mining company, optimized an existing app, more akin to a trading app, deployed between OLAP vs. OLTP. Applied a blend of DB/user and usage analysis/patterns/ML-based techniques to provide a list of recommendations to optimize.
GenAI + Vision Project #3 (2023-2024) - For a British multinational fast-moving consumer goods company, My key contribution is solution architecture based on Vision + GenAI for product detection and personalized recommendations, for its customers' products and brands.
Plants Classification Project #4 - Developing vision-based state-of-the-art classification models for the world's leading gardening charity. This work involved data curation, augmentation, and training, and ended as a paper :). Link
GenAI and CX improvement Project #5 - For a US-based leading specialty retailer of organizing solutions, custom spaces, and in-home services, leveraging GenAI + Vision to improve the customer journey. Pitched/deployed selected use cases. This is similar to what you see in Amazon/Swiggy GenAI Changes.
Forecasting Project #6 - Domain played a key role for me to contribute. For a leading South American beauty retailer, developing forecast models.
I had a mix of responsibilities as a Solution Architect, DB, and ML Engineer. I relied mostly on SA/DB/ML. In all projects, The team was a mix of platform, MLOps, and ML engineers. Sometimes the platform is a vendor cloud or an in-prem solution.
Hoping to undertake a few more similar projects in my next self-employed consulting roles.
If you are a startup, or SMB looking to apply AI/ML in your solutions, We can connect and collaborate on your AI Strategy. My coordinates [sivaram2k10][at][gmail]
Keep Exploring!!!
Spot the right use case, solve with the balance of data / strategy to meet the market on time
More read - Link
Keep Exploring!!!
Learning to Summarize Videos by Contrasting Clips
Video Summarization: Towards Entity-Aware Captions - Summarizing video content into a natural language description
Video Summarization Using Deep Neural Networks: A Survey
Option #1
Option #2
Other Techniques
Keep Exploring!!!
How do you approach Damage Detection in Mobile Phones?
Detecting defects on phones during exchange
Question - Can it be done with ML?
Question - Data Prerequisites?
Student Answers
Question - Model building
Student Answers
Real-world Way of Solving
My Recommendation
Simplifying Neural Network Training Under Class Imbalance
Label smoothing is a technique often used in training deep learning models, particularly for classification tasks. It modifies the target labels, making them a blend of the original hard labels and some uniform or prior distribution. This can lead to better generalization by preventing the model from becoming too confident about its predictions. In a class-imbalanced setting, where some classes have significantly more examples than others, label smoothing can help by reducing the model's bias towards the more frequent classes.
Label smoothing for the class-imbalanced setting python example
In practice, label smoothing does not change the dataset's inherent imbalance but softens the target distributions by moving a portion of the mass from the peak (corresponding to the hard label) to other classes, which can help during the training of a model, preventing it from becoming overly confident on the majority class.
Loss reweighting for the class-imbalanced setting python example
class_weight: Optional dictionary mapping class indices (integers) to a weight (float) value, used for weighting the loss function (during training only).
Let's import the module first
from sklearn.utils import class_weight
In order to calculate the class weight do the following
class_weights = class_weight.compute_class_weight('balanced', np.unique(y_train), y_train)
Thirdly and lastly add it to the model fitting
model.fit(X_train, y_train, class_weight=class_weights)
Keep Exploring!!!
Key Notes / Ideas
Key items from blog / Reposted
Local vs Global Interpretations:
Data Types & Applicable Interpretability Methods:
Model Specificity:
From AI Ethics institute key points Link
Product and Example
Key Techniques
Pruning Weights
Criteria for Pruning
Weight Sharing
Quantization
Low-rank Approximation
Sparse Regularization
Distillation
Ref - Link
Trying to find similar groups based on behavior - Apply Clustering
Predicting the intuition, this is my job connecting to it - Classification
With a new height of happiness/hope in life - Forecast more sleep hours
Look at people, decode their intentions - Read data/correlate and spot intentions
Finding my liked-minded folks with cosine, euclidean, and manhattan but still not getting relevant recommendations
On mistakes still learning to backpropagate and change/improve my optimistic learning rates
Everything is deep in life... the deeper you feel, the farther you go...
Have more attention to the present. Live more, Feel the Life.
It's a Deep Life :)
It's always good to take a pause/revise / add a few more learning pointers :)
The choice of loss depends on the desired output (e.g., classification vs. regression)
Regression Loss Functions
L2 Norm, mean squared error. Mean Squared Error - The mean square error is probably straight forward. You take the difference of the result and the ground truth for this sample and square it.
The L1 loss is basically the Absolut value of the difference between the current sample’s actual output and the desired output.
Binary Classification Loss Functions
Multi-class Classification Loss Functions
The Negative log-likelihood loss is based on the idea that every output represents a likelihood for example a particular class. It aims to make the output for the correct class has high as possible and for others as small as possible.
Cross entropy loss - The cross entropy loss is very popular for classification problems. The losses are averaged across observations for each minibatch
Kullback-Leibler Divergence Loss - Measures distance between distributions
Keep Thinking!!!
My Summary
Zero-Shot Learning - Feature / Attribute extraction and prediction based on those features of known class and heard features of unknown class
Feedback - Good concept, For all these cases we need reasonable data to extract, build features, and discriminative features.
Some conceptual notes/papers
From classification - Set of X, Not belongs to X, Belongs to set ox X class vs Not belongs to X set
If I had to sum up ZSL in a few words, I’d say that it is:
Rethinking Zero-Shot Learning: A Conditional Visual Classification Perspective
Zero-shot Learning with Deep Neural Networks for Object Recognition∗
Keep Exploring!!!
Keep Exploring!!!
For questions/feedback/career opportunities/training / consulting assignments/mentoring - please drop a note to sivaram2k10(at)gmail(dot)com
Coach / Code / Innovate