.cursorrules (deprecated)
rules/pytorch-scikit-learn-cursorrules-prompt-file/.cursorrules.cursorrules
Quality
38/100
Scores the file, not the repository.Length
579 words
0 headings · 0 code blocksRepository
26
— · pushed 679 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.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.
Also in Qwertic/cursorrules
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 |
|---|---|---|---|---|---|
| Qwertic/cursorrulesrules/next-type-llm/.cursorrules · 26 | .cursorrules | security | 30/100 | 3 days ago | |
| Qwertic/cursorrulesrules/angular-typescript-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | testdocs | 34/100 | 3 days ago | |
| Qwertic/cursorrulesrules/ascii-simulation-game-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | no sections | 34/100 | 3 days ago | |
| Qwertic/cursorrulesrules/astro-typescript-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | git | 30/100 | 3 days ago | |
| Qwertic/cursorrulesrules/chrome-extension-dev-js-typescript-cursorrules-pro/.cursorrules · 26 | .cursorrules | style | 38/100 | 3 days ago | |
| Qwertic/cursorrulesrules/code-guidelines-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | styletesting-strategydo-notagent-behaviour | 41/100 | 3 days ago | |
| Qwertic/cursorrulesrules/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/.cursorrules · 26 | .cursorrules | no sections | 16/100 | 3 days ago | |
| Qwertic/cursorrulesrules/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/.cursorrules · 26 | .cursorrules | setupbuildlint-formatstyle+8 | 62/100 | 3 days ago | |
| Qwertic/cursorrulesrules/deno-integration-techniques-cursorrules-prompt-fil/.cursorrules · 26 | .cursorrules | no sections | 16/100 | 3 days ago | |
| Qwertic/cursorrulesrules/dragonruby-best-practices-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | style | 34/100 | 3 days ago | |
| Qwertic/cursorrulesrules/elixir-engineer-guidelines-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | no sections | 16/100 | 3 days ago | |
| Qwertic/cursorrulesrules/github-code-quality-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | do-notagent-behaviour | 37/100 | 3 days ago | |
| Qwertic/cursorrulesrules/github-cursorrules-prompt-file-instructions/.cursorrules · 26 | .cursorrules | no sections | 26/100 | 3 days ago | |
| Qwertic/cursorrulesrules/go-backend-scalability-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | no sections | 40/100 | 3 days ago | |
| Qwertic/cursorrulesrules/go-servemux-rest-api-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | no sections | 30/100 | 3 days ago | |
| Qwertic/cursorrulesrules/graphical-apps-development-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | setupbuildstylearch+4 | 46/100 | 3 days ago | |
| Qwertic/cursorrulesrules/html-tailwind-css-javascript-cursorrules-prompt-fi/.cursorrules · 26 | .cursorrules | no sections | 30/100 | 3 days ago | |
| Qwertic/cursorrulesrules/javascript-astro-tailwind-css-cursorrules-prompt-f/.cursorrules · 26 | .cursorrules | do-not | 49/100 | 3 days ago | |
| Qwertic/cursorrulesrules/javascript-chrome-apis-cursorrules-prompt-file/.cursorrules · 26 | .cursorrules | no sections | 16/100 | 3 days ago | |
| Qwertic/cursorrulesrules/javascript-typescript-code-quality-cursorrules-pro/.cursorrules · 26 | .cursorrules | teststyletypesperformance+3 | 49/100 | 3 days ago |
Diff against rules/next-type-llm/.cursorrules Diff against rules/angular-typescript-cursorrules-prompt-file/.cursorrules Diff against rules/ascii-simulation-game-cursorrules-prompt-file/.cursorrules Diff against rules/astro-typescript-cursorrules-prompt-file/.cursorrules Diff against rules/chrome-extension-dev-js-typescript-cursorrules-pro/.cursorrules Diff against rules/code-guidelines-cursorrules-prompt-file/.cursorrules Diff against rules/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/.cursorrules Diff against rules/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/.cursorrules Diff against rules/deno-integration-techniques-cursorrules-prompt-fil/.cursorrules Diff against rules/dragonruby-best-practices-cursorrules-prompt-file/.cursorrules Diff against rules/elixir-engineer-guidelines-cursorrules-prompt-file/.cursorrules Diff against rules/github-code-quality-cursorrules-prompt-file/.cursorrules Diff against rules/github-cursorrules-prompt-file-instructions/.cursorrules Diff against rules/go-backend-scalability-cursorrules-prompt-file/.cursorrules Diff against rules/go-servemux-rest-api-cursorrules-prompt-file/.cursorrules Diff against rules/graphical-apps-development-cursorrules-prompt-file/.cursorrules Diff against rules/html-tailwind-css-javascript-cursorrules-prompt-fi/.cursorrules Diff against rules/javascript-astro-tailwind-css-cursorrules-prompt-f/.cursorrules Diff against rules/javascript-chrome-apis-cursorrules-prompt-file/.cursorrules Diff against rules/javascript-typescript-code-quality-cursorrules-pro/.cursorrules
