RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/.cursorrules/paulpham157/paul-s-cursor-rules

.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 blocks

Repository

28

— · pushed 478 days ago

Last changed

3 days ago

First indexed 3 days ago.
paulpham157/paul-s-cursor-rules/1/framework_rules/rules/pytorch-scikit-learn-cursorrules-prompt-file/.cursorrulesRawGitHub
1You are an expert in developing machine learning models for chemistry applications using Python, with a focus on scikit-learn and PyTorch.
2 
3Key Principles:
4 
5- 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.
10 
11Machine Learning Framework Usage:
12 
13- 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).
16 
17Data Handling and Preprocessing:
18 
19- 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.
23 
24Model Development:
25 
26- 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.
30 
31Deep Learning (PyTorch):
32 
33- 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.
37 
38Model Evaluation and Interpretation:
39 
40- 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).
44 
45Reproducibility and Version Control:
46 
47- 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.
51 
52Performance Optimization:
53 
54- 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.
58 
59Testing and Validation:
60 
61- 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).
64 
65Project Structure and Documentation:
66 
67- 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.
71 
72Dependencies:
73 
74- NumPy
75- pandas
76- scikit-learn
77- PyTorch
78- 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)
85 
86Key Conventions:
87 
881. 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.
92 
93Refer to official documentation for scikit-learn, PyTorch, and chemistry-related libraries for best practices and up-to-date APIs.
94 
95Note on Integration with Tauri Frontend:
96 
97- 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.
100 
101 

What it covers

test

Stack — with the evidence

github-actions

(0.60)

Format

.cursorrules

Cursor's original single-file format, superseded by .cursor/rules/*.mdc. Tracked here precisely because it is dead: how much of the ecosystem is still shipping a deprecated file is a measurable answer, and a large share of the "best cursor rules" pages on the web still teach this format.

What the corpus says about it

Repository

Owner
paulpham157
Language
—
License
—
Archived
no

All configs in this repo

Also in paulpham157/paul-s-cursor-rules

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
paulpham157/paul-s-cursor-rules1/framework_rules/rules/react-styled-components-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsstyle42/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/react-typescript-nextjs-nodejs-cursorrules-prompt-/.cursorrules · 28.cursorrulesgithub-actionsstyle44/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/.cursorrules · 28.cursorrulesgithub-actionsdocs34/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/android-jetpack-compose-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstesting-strategy38/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-novo-elements-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstestlint-formatstylearch+370/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-typescript-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsteststyledocs38/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/ascii-simulation-game-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsno sections34/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/aspnet-abp-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstestlint-formatstylearch+570/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/astro-typescript-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsgit30/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/chrome-extension-dev-js-typescript-cursorrules-pro/.cursorrules · 28.cursorrulesgithub-actionsstyle38/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cpp-programming-guidelines-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsteststylearchperformance68/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/.cursorrules · 28.cursorrulesgithub-actionsno sections16/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/.cursorrules · 28.cursorrulesgithub-actionsstyletypesuido-not65/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-cursor-ai-wordpress-draft-macos-prompt/.cursorrules · 28.cursorrulesgithub-actionsno sections16/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-file-cursor-ai-python-fastapi-api/.cursorrules · 28.cursorrulesgithub-actionsstyletypes38/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/deno-integration-techniques-cursorrules-prompt-fil/.cursorrules · 28.cursorrulesgithub-actionsno sections16/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/dragonruby-best-practices-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsstyle34/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/drupal-11-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsstyle46/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/elixir-engineer-guidelines-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsno sections16/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/elixir-phoenix-docker-setup-cursorrules-prompt-fil/.cursorrules · 28.cursorrulesgithub-actionsgit30/1003 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.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
SkeneTechnologies/skene-cookbook.cursorrules · 51.cursorrulespythoneslint+3setuptestlint-formatstyle+1196/1002 days ago
fall-out-bug/sdp_lab.cursorrules · 0.cursorrulesgodocker+3setupbuildtestlint-format+386/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/python-llm-ml-workflow-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstestlint-formatstyletypes+480/1003 days ago
storybookjs/storybook.cursorrules · 91k.cursorrulestypescriptjavascript+6teststylearchdo-not+178/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/flutter-riverpod-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsstylearchdo-notagent-behaviour71/1003 days ago
forem/forem.cursorrules · 23k.cursorrulesrubyrails+9teststyletypesdatabase+471/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-novo-elements-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstestlint-formatstylearch+370/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsbuildstylearchdo-not70/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack