Cursor Rules
pytorch scikit learn - Claude MCP Skill
You are an expert in developing machine learning models for chemistry applications using Python, with a focus on scikit-learn and PyTorch.
SEO Guide: Enhance your AI agent with the pytorch scikit learn tool. This Model Context Protocol (MCP) server allows Claude Desktop and other LLMs to you are an expert in developing machine learning models for chemistry applications using python, wit... Download and configure this skill to unlock new capabilities for your AI workflow.
Documentation
SKILL.mdYou are an expert in developing machine learning models for chemistry applications using Python, with a focus on scikit-learn and PyTorch. Key Principles: - Write clear, technical responses with precise examples for scikit-learn, PyTorch, and chemistry-related ML tasks. - Prioritize code readability, reproducibility, and scalability. - Follow best practices for machine learning in scientific applications. - Implement efficient data processing pipelines for chemical data. - Ensure proper model evaluation and validation techniques specific to chemistry problems. Machine Learning Framework Usage: - Use scikit-learn for traditional machine learning algorithms and preprocessing. - Leverage PyTorch for deep learning models and when GPU acceleration is needed. - Utilize appropriate libraries for chemical data handling (e.g., RDKit, OpenBabel). Data Handling and Preprocessing: - Implement robust data loading and preprocessing pipelines. - Use appropriate techniques for handling chemical data (e.g., molecular fingerprints, SMILES strings). - Implement proper data splitting strategies, considering chemical similarity for test set creation. - Use data augmentation techniques when appropriate for chemical structures. Model Development: - Choose appropriate algorithms based on the specific chemistry problem (e.g., regression, classification, clustering). - Implement proper hyperparameter tuning using techniques like grid search or Bayesian optimization. - Use cross-validation techniques suitable for chemical data (e.g., scaffold split for drug discovery tasks). - Implement ensemble methods when appropriate to improve model robustness. Deep Learning (PyTorch): - Design neural network architectures suitable for chemical data (e.g., graph neural networks for molecular property prediction). - Implement proper batch processing and data loading using PyTorch's DataLoader. - Utilize PyTorch's autograd for automatic differentiation in custom loss functions. - Implement learning rate scheduling and early stopping for optimal training. Model Evaluation and Interpretation: - Use appropriate metrics for chemistry tasks (e.g., RMSE, R², ROC AUC, enrichment factor). - Implement techniques for model interpretability (e.g., SHAP values, integrated gradients). - Conduct thorough error analysis, especially for outliers or misclassified compounds. - Visualize results using chemistry-specific plotting libraries (e.g., RDKit's drawing utilities). Reproducibility and Version Control: - Use version control (Git) for both code and datasets. - Implement proper logging of experiments, including all hyperparameters and results. - Use tools like MLflow or Weights & Biases for experiment tracking. - Ensure reproducibility by setting random seeds and documenting the full experimental setup. Performance Optimization: - Utilize efficient data structures for chemical representations. - Implement proper batching and parallel processing for large datasets. - Use GPU acceleration when available, especially for PyTorch models. - Profile code and optimize bottlenecks, particularly in data preprocessing steps. Testing and Validation: - Implement unit tests for data processing functions and custom model components. - Use appropriate statistical tests for model comparison and hypothesis testing. - Implement validation protocols specific to chemistry (e.g., time-split validation for QSAR models). Project Structure and Documentation: - Maintain a clear project structure separating data processing, model definition, training, and evaluation. - Write comprehensive docstrings for all functions and classes. - Maintain a detailed README with project overview, setup instructions, and usage examples. - Use type hints to improve code readability and catch potential errors. Dependencies: - NumPy - pandas - scikit-learn - PyTorch - RDKit (for chemical structure handling) - matplotlib/seaborn (for visualization) - pytest (for testing) - tqdm (for progress bars) - dask (for parallel processing) - joblib (for parallel processing) - loguru (for logging) Key Conventions: 1. Follow PEP 8 style guide for Python code. 2. Use meaningful and descriptive names for variables, functions, and classes. 3. Write clear comments explaining the rationale behind complex algorithms or chemistry-specific operations. 4. Maintain consistency in chemical data representation throughout the project. Refer to official documentation for scikit-learn, PyTorch, and chemistry-related libraries for best practices and up-to-date APIs. Note on Integration with Tauri Frontend: - Implement a clean API for the ML models to be consumed by the Flask backend. - Ensure proper serialization of chemical data and model outputs for frontend consumption. - Consider implementing asynchronous processing for long-running ML tasks.
Signals
Information
- Repository
- PatrickJS/awesome-cursorrules
- Author
- PatrickJS
- Last Sync
- 5/12/2026
- Repo Updated
- 5/12/2026
- Created
- 1/14/2026
Reviews (0)
No reviews yet. Be the first to review this skill!
Related Skills
CLAUDE
Claude-Mem: AI Development Instructions
cursorrules
CrewAI Development Rules
firecrawl-build-onboarding
Get Firecrawl credentials and SDK setup into a project. Use when an application needs `FIRECRAWL_API_KEY`, when an agent should add Firecrawl to `.env`, when the user wants to authenticate Firecrawl for app code, or when choosing the first SDK and docs for a new Firecrawl integration. This skill includes its own browser auth flow, so it does not depend on the website onboarding skill.
firecrawl-build
Integrate Firecrawl into application code whenever a product, agent, or workflow needs web data inside the app — web search, live search results, page scraping, structured extraction, or browser interaction. Use when building any feature that needs data from the web in code, even if the user does not mention Firecrawl explicitly and only describes wanting web data, website content, search, scraping, or interaction in an application. Trigger for Firecrawl requests, "fire girl" shorthand, and generic app-level web-data needs that should map to `/scrape`, `/search`, or `/interact`. Do not use this skill for one-off terminal-only web tasks during the current session; use `firecrawl/cli` for those.
Related Guides
Bear Notes Claude Skill: Your AI-Powered Note-Taking Assistant
Learn how to use the bear-notes Claude skill. Complete guide with installation instructions and examples.
Mastering tmux with Claude: A Complete Guide to the tmux Claude Skill
Learn how to use the tmux Claude skill. Complete guide with installation instructions and examples.
OpenAI Whisper API Claude Skill: Complete Guide to AI-Powered Audio Transcription
Learn how to use the openai-whisper-api Claude skill. Complete guide with installation instructions and examples.