This repository serves as a collection of AI and machine learning projects, models, and experiments. Each project is organized into its own directory and includes all necessary files for dataset preparation, model training, evaluation, and deployment.
- Description: A sentiment analysis model fine-tuned on a Hugging Face transformer (
cardiffnlp/twitter-roberta-base-sentiment-latest). - Key Features:
- Dataset preparation using
creatingdataset.ipynb. - Model training and evaluation using
training.ipynb. - Deployment via Hugging Face pipelines.
- Dataset preparation using
- Directory:
first-model-sentiment-analysis/ - Output: Fine-tuned model saved in
my_sentiment_model/.
- Description: A suicide detection model fine-tuned on the
distilbert-base-uncased-finetuned-sst-2-englishtransformer model. - Key Features:
- Dataset preparation and filtering using
json2jsonl.pyandtrainingModel.ipynb. - Fine-tuning the model for binary classification (
non-suicideandsuicide). - Deployment via Hugging Face pipelines with custom label mapping.
- Dataset preparation and filtering using
- Directory:
suicide-detection/ - Output: Fine-tuned model saved in
my_suicide_buddy/. - Model Link: "amor3x/my_suicide_buddy"
- Description: Mental Sentiment model finetuned on the
distilbert/distilbert-base-uncasedtransformer model. - Key Features:
- Dataset preparation and filtering using
json2jsonl.pyandtrainingModel.ipynb. - Fine-tuning the model for classification (
anxiety,normal,bipolar,depressionandsuicidal). - Deployment via Hugging Face pipelines with custom label mapping.
- Dataset preparation and filtering using
- Directory:
mental-health/ - Output: Fine-tuned model saved in
mental_health_bud/. - Model Link: "amor3x/mental_health_bud"
To get started with any project in this repository:
- Clone the repository:
git clone https://github.com/your-username/ai-learn.git cd ai-learn - Navigate to project directory of your choice
- Run the notebook Cells in appropriate order :
- Creating Dataset
- Training Model
Each project may have its own dependencies. Below are the general requirements:
- Python 3.x
- Jupyter Notebook
- Hugging Face Transformers
- Kagglehub
- Datasets library
- Additional libraries as specified in individual project directories.
- https://codebeautify.org/csv-to-json-converter FOR csv to JSON
- Hugging face for models and datasets
- Kaggle for Datasets
Contributions are welcome! If you'd like to add a new project or improve an existing one:
$ huggingface-cli repo create my_suicide_buddy $ huggingface-cli upload amor3x/mental_health_bud