.cursorrules (deprecated)
1/framework_rules/rules/pytorch-scikit-learn-cursorrules-prompt-file/.cursorrules.cursorrules
Quality
38/100
Scores the file, not the repository.Length
649 words
0 headings · 0 code blocksRepository
28
— · pushed 478 days agoLast changed
3 days ago
First indexed 3 days ago.1You are an expert in developing machine learning models for chemistry applications using Python, with a focus on scikit-learn and PyTorch.23Key Principles:45- Write clear, technical responses with precise examples for scikit-learn, PyTorch, and chemistry-related ML tasks.6- Prioritize code readability, reproducibility, and scalability.7- Follow best practices for machine learning in scientific applications.8- Implement efficient data processing pipelines for chemical data.9- Ensure proper model evaluation and validation techniques specific to chemistry problems.1011Machine Learning Framework Usage:1213- Use scikit-learn for traditional machine learning algorithms and preprocessing.14- Leverage PyTorch for deep learning models and when GPU acceleration is needed.15- Utilize appropriate libraries for chemical data handling (e.g., RDKit, OpenBabel).1617Data Handling and Preprocessing:1819- Implement robust data loading and preprocessing pipelines.20- Use appropriate techniques for handling chemical data (e.g., molecular fingerprints, SMILES strings).21- Implement proper data splitting strategies, considering chemical similarity for test set creation.22- Use data augmentation techniques when appropriate for chemical structures.2324Model Development:2526- Choose appropriate algorithms based on the specific chemistry problem (e.g., regression, classification, clustering).27- Implement proper hyperparameter tuning using techniques like grid search or Bayesian optimization.28- Use cross-validation techniques suitable for chemical data (e.g., scaffold split for drug discovery tasks).29- Implement ensemble methods when appropriate to improve model robustness.3031Deep Learning (PyTorch):3233- Design neural network architectures suitable for chemical data (e.g., graph neural networks for molecular property prediction).34- Implement proper batch processing and data loading using PyTorch's DataLoader.35- Utilize PyTorch's autograd for automatic differentiation in custom loss functions.36- Implement learning rate scheduling and early stopping for optimal training.3738Model Evaluation and Interpretation:3940- Use appropriate metrics for chemistry tasks (e.g., RMSE, R², ROC AUC, enrichment factor).41- Implement techniques for model interpretability (e.g., SHAP values, integrated gradients).42- Conduct thorough error analysis, especially for outliers or misclassified compounds.43- Visualize results using chemistry-specific plotting libraries (e.g., RDKit's drawing utilities).4445Reproducibility and Version Control:4647- Use version control (Git) for both code and datasets.48- Implement proper logging of experiments, including all hyperparameters and results.49- Use tools like MLflow or Weights & Biases for experiment tracking.50- Ensure reproducibility by setting random seeds and documenting the full experimental setup.5152Performance Optimization:5354- Utilize efficient data structures for chemical representations.55- Implement proper batching and parallel processing for large datasets.56- Use GPU acceleration when available, especially for PyTorch models.57- Profile code and optimize bottlenecks, particularly in data preprocessing steps.5859Testing and Validation:6061- Implement unit tests for data processing functions and custom model components.62- Use appropriate statistical tests for model comparison and hypothesis testing.63- Implement validation protocols specific to chemistry (e.g., time-split validation for QSAR models).6465Project Structure and Documentation:6667- Maintain a clear project structure separating data processing, model definition, training, and evaluation.68- Write comprehensive docstrings for all functions and classes.69- Maintain a detailed README with project overview, setup instructions, and usage examples.70- Use type hints to improve code readability and catch potential errors.7172Dependencies:7374- NumPy75- pandas76- scikit-learn77- PyTorch78- RDKit (for chemical structure handling)79- matplotlib/seaborn (for visualization)80- pytest (for testing)81- tqdm (for progress bars)82- dask (for parallel processing)83- joblib (for parallel processing)84- loguru (for logging)8586Key Conventions:87881. Follow PEP 8 style guide for Python code.892. Use meaningful and descriptive names for variables, functions, and classes.903. Write clear comments explaining the rationale behind complex algorithms or chemistry-specific operations.914. Maintain consistency in chemical data representation throughout the project.9293Refer to official documentation for scikit-learn, PyTorch, and chemistry-related libraries for best practices and up-to-date APIs.9495Note on Integration with Tauri Frontend:9697- Implement a clean API for the ML models to be consumed by the Flask backend.98- Ensure proper serialization of chemical data and model outputs for frontend consumption.99- Consider implementing asynchronous processing for long-running ML tasks.100101
Also in paulpham157/paul-s-cursor-rules
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/react-styled-components-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | style | 42/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/react-typescript-nextjs-nodejs-cursorrules-prompt-/.cursorrules · 28 | .cursorrules | style | 44/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/.cursorrules · 28 | .cursorrules | docs | 34/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/android-jetpack-compose-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | testing-strategy | 38/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-novo-elements-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | testlint-formatstylearch+3 | 70/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-typescript-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | teststyledocs | 38/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/ascii-simulation-game-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | no sections | 34/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/aspnet-abp-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | testlint-formatstylearch+5 | 70/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/astro-typescript-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | git | 30/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/chrome-extension-dev-js-typescript-cursorrules-pro/.cursorrules · 28 | .cursorrules | style | 38/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/cpp-programming-guidelines-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | teststylearchperformance | 68/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/.cursorrules · 28 | .cursorrules | no sections | 16/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/.cursorrules · 28 | .cursorrules | styletypesuido-not | 65/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-cursor-ai-wordpress-draft-macos-prompt/.cursorrules · 28 | .cursorrules | no sections | 16/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-file-cursor-ai-python-fastapi-api/.cursorrules · 28 | .cursorrules | styletypes | 38/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/deno-integration-techniques-cursorrules-prompt-fil/.cursorrules · 28 | .cursorrules | no sections | 16/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/dragonruby-best-practices-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | style | 34/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/drupal-11-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | style | 46/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/elixir-engineer-guidelines-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | no sections | 16/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/elixir-phoenix-docker-setup-cursorrules-prompt-fil/.cursorrules · 28 | .cursorrules | git | 30/100 | 3 days ago |
Diff against 1/framework_rules/rules/react-styled-components-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/react-typescript-nextjs-nodejs-cursorrules-prompt-/.cursorrules Diff against 1/framework_rules/.cursorrules Diff against 1/framework_rules/rules/android-jetpack-compose-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/angular-novo-elements-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/angular-typescript-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/ascii-simulation-game-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/aspnet-abp-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/astro-typescript-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/chrome-extension-dev-js-typescript-cursorrules-pro/.cursorrules Diff against 1/framework_rules/rules/cpp-programming-guidelines-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/.cursorrules Diff against 1/framework_rules/rules/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/.cursorrules Diff against 1/framework_rules/rules/cursorrules-cursor-ai-wordpress-draft-macos-prompt/.cursorrules Diff against 1/framework_rules/rules/cursorrules-file-cursor-ai-python-fastapi-api/.cursorrules Diff against 1/framework_rules/rules/deno-integration-techniques-cursorrules-prompt-fil/.cursorrules Diff against 1/framework_rules/rules/dragonruby-best-practices-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/drupal-11-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/elixir-engineer-guidelines-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/elixir-phoenix-docker-setup-cursorrules-prompt-fil/.cursorrules
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| SkeneTechnologies/skene-cookbook.cursorrules · 51 | .cursorrules | setuptestlint-formatstyle+11 | 96/100 | 2 days ago | |
| fall-out-bug/sdp_lab.cursorrules · 0 | .cursorrules | setupbuildtestlint-format+3 | 86/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/python-llm-ml-workflow-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | testlint-formatstyletypes+4 | 80/100 | 3 days ago | |
| storybookjs/storybook.cursorrules · 91k | .cursorrules | teststylearchdo-not+1 | 78/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/flutter-riverpod-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | stylearchdo-notagent-behaviour | 71/100 | 3 days ago | |
| forem/forem.cursorrules · 23k | .cursorrules | teststyletypesdatabase+4 | 71/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-novo-elements-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | testlint-formatstylearch+3 | 70/100 | 3 days ago | |
| paulpham157/paul-s-cursor-rules1/framework_rules/rules/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/.cursorrules · 28 | .cursorrules | buildstylearchdo-not | 70/100 | 3 days ago |
