Sunday, April 12, 2026

List Of Models

Sr. No. Model Family (Learning Type) Model Type Model Name Popular Implementations / Models Use Cases
1Supervised LearningRegression / Linear ModelsLinear RegressionScikit-learn LinearRegressionHouse price prediction, forecasting
2Supervised LearningRegression / Linear ModelsLogistic RegressionScikit-learn LogisticRegressionSpam detection, credit scoring
3Supervised LearningTree-Based ModelsDecision TreeCART (Classification & Regression Trees)Loan approval, diagnosis
4Supervised LearningEnsemble (Bagging)Random ForestRandomForest (Scikit-learn)Fraud detection, risk modeling
5Supervised LearningEnsemble (Boosting)Gradient BoostingXGBoost, LightGBM, CatBoostRanking, fraud detection
6Supervised LearningDistance-Basedk-NNScikit-learn KNNRecommendation, similarity search
7Supervised LearningProbabilisticNaive BayesGaussianNB, MultinomialNBSpam filtering, NLP
8Supervised LearningMargin-BasedSVMLIBSVM, Scikit-learn SVMText classification, bioinformatics
9Supervised LearningNeural NetworksANNTensorFlow / PyTorch basic NNPrediction, pattern recognition
10Supervised LearningDeep LearningCNNResNet, VGG, EfficientNetImage recognition, medical imaging
11Supervised LearningDeep LearningRNN / LSTMSeq2Seq, LSTM (Keras/PyTorch)Speech, time-series
12Supervised LearningDeep LearningTransformersGPT, BERT, T5, LLaMAChatbots, search, translation
13Unsupervised LearningClusteringK-MeansScikit-learn KMeansCustomer segmentation
14Unsupervised LearningClusteringDBSCANScikit-learn DBSCANAnomaly detection
15Unsupervised LearningClusteringHierarchicalSciPy Hierarchical ClusteringTaxonomy, grouping
16Unsupervised LearningProbabilisticGMMScikit-learn GaussianMixtureSoft clustering
17Unsupervised LearningDimensionality ReductionPCAScikit-learn PCAVisualization, compression
18Unsupervised LearningDimensionality Reductiont-SNEsklearn / openTSNEEmbedding visualization
19Unsupervised LearningNeural NetworksAutoencodersTensorFlow / PyTorch AEAnomaly detection
20Unsupervised LearningAssociation RulesApriorimlxtend AprioriMarket basket analysis
21Semi-SupervisedHybridSelf-TrainingPseudo-labeling pipelinesMedical imaging
22Semi-SupervisedGraph-BasedLabel Propagationsklearn LabelPropagationSocial networks
23Semi-SupervisedNeural NetworksSemi-Supervised NNFixMatch, MixMatchNLP, speech
24Reinforcement LearningValue-BasedQ-LearningOpenAI Gym implementationsRobotics, games
25Reinforcement LearningDeep RLDQNDeepMind DQNGaming, control systems
26Reinforcement LearningPolicy-BasedPolicy GradientREINFORCERobotics
27Reinforcement LearningActor-CriticPPO / A2CStable-Baselines3Trading, optimization
28Optimization / EvolutionaryEvolutionaryGenetic AlgorithmsDEAP libraryScheduling, optimization
29Optimization / EvolutionarySwarmParticle Swarm OptimizationPySwarmsHyperparameter tuning
30Optimization / EvolutionarySwarmAnt Colony OptimizationACO algorithmsRouting, logistics
31Rule-Based / SymbolicExpert SystemsRule-Based SystemsDroolsBusiness rules
32Rule-Based / SymbolicKnowledge-BasedKnowledge GraphsNeo4j, RDF GraphsSearch, recommendations
33Ensemble LearningBaggingBaggingScikit-learn BaggingVariance reduction
34Ensemble LearningBoostingAdaBoostAdaBoost (sklearn)Classification improvement
35Ensemble LearningStackingStackingStackingClassifierHigh accuracy systems
36AI Systems (Hybrid)RAGRetrieval-Augmented GenerationLangChain, LlamaIndex + GPTEnterprise chatbots, QA
37AI Systems (Hybrid)Agentic PipelinesAI AgentsAutoGPT, CrewAI, LangGraphTask automation, research agents

Monday, February 9, 2026

rls

To enable row-level security (RLS) in MS SQL Server (2016 and later), you need to define a security policy that uses a user-defined, inline table-valued function as a filter predicate.

Step-by-Step Guide

1. Ensure compatibility

Verify that your SQL Server instance is at least SQL Server 2016 or newer.

2. Create a schema for RLS objects (Recommended)

This practice separates your security logic from the application data.

CREATE SCHEMA Security;
GO

3. Create a predicate function

This inline table-valued function contains the logic for determining which rows a user can access. The function must be created with SCHEMABINDING.

Example: This function allows a user to see rows where the UserID column matches their username, or if they are a Manager.

CREATE FUNCTION Security.fn_securitypredicate(@UserID AS sysname)
    RETURNS TABLE
    WITH SCHEMABINDING
AS
    RETURN SELECT 1 AS result
    WHERE @UserID = USER_NAME() OR USER_NAME() = 'Manager';
GO

4. Create and enable a security policy

The security policy links the predicate function to your target table and enables the RLS enforcement.

Example: This policy applies the function to the dbo.YourTable table, using the UserID column for the filter.

CREATE SECURITY POLICY SecurityPolicy
ADD FILTER PREDICATE Security.fn_securitypredicate(UserID) ON dbo.YourTable
WITH (STATE = ON);
GO

5. Grant necessary permissions

Ensure users have SELECT permission on both the target table and the security function.

GRANT SELECT ON dbo.YourTable TO SalesRep1;
GRANT SELECT ON Security.fn_securitypredicate TO SalesRep1;
-- Repeat for other users/roles as needed


Testing the Implementation
You can test RLS by impersonating different users to verify they only see authorized data.
sql
EXECUTE AS USER = 'SalesRep1';
SELECT * FROM dbo.YourTable; -- This will only show rows matching SalesRep1's UserID

REVERT; -- Stop impersonating
EXECUTE AS USER = 'Manager';
SELECT * FROM dbo.YourTable; -- This will show all rows
REVERT

Sunday, February 8, 2026

Docker run for mac

 docker run -d -p 10000:3000 -p 11000:4000  --name ub-react -v "/Users/atharvachandras/Desktop/rajesh/DockerVolumes/React:/rajesh" ubuntu:latest tail -F /dev/null


you have to use /Users/username/Desktop as base path

/Users/username has to be used, and it is always better to use /Desktop so that it is immediately visible ( otherwise everytime you have to use search option) 


docker run -d -p 10001:3001 -p 11001:4001  --name ub-python -v "/Users/atharvachandras/Desktop/rajesh/DockerVolumes/Python:/rajesh" ubuntu:latest tail -F /dev/null



docker exec -it ub-react bash

apt-get update 

apt-get install git

apt-get install vim


/* do NOT directly run following commands, they will get older versions */

apt-get install nodejs

apt-get install npm


/* instead use following commands  */

apt-get install -y curl

apt-get install sudo

curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -

sudo apt-get install -y nodejs




nodejs -v 

npm -v 


as of 08feb2026 : 24.13.0 and 11.6.2

Friday, March 21, 2025

Vercel Mongo Integration

 

A screenshot of a computer

AI-generated content may be incorrect.

 

 

A screenshot of a computer

AI-generated content may be incorrect.

 

 

 

 

Click continue

 

A screenshot of a computer

AI-generated content may be incorrect.

Press “I Acknowledge”

 

A screenshot of a computer

AI-generated content may be incorrect.

Multiselect vercel projects

Click “ “Connect and Return to  Vercel”

 

A screenshot of a computer

AI-generated content may be incorrect.

 

 

Takes a long time to complete  approx. 5 minutes

 

A screenshot of a computer

AI-generated content may be incorrect.

List Of Models

Sr. No. Model Family (Learning Type) Model Type Model Name Popular Implementations / Models ...