Downloads · 30 days
0
alrobles/ecocoder-scientific-reasoning
ecocoder-scientific-reasoning is a machine learning model from alrobles. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Chain-of-Thought (CoT) traces for fine-tuning LLMs on ecological scientific reasoning + code generation.
Downloads · 30 days
0
Access
Public
Updated Jun 6, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.jsonl5 MB · 100%
From the Hugging Face model README
Chain-of-Thought (CoT) traces for fine-tuning LLMs on ecological scientific reasoning + code generation.
Each trace follows: [CONTEXT] (ecological problem) → [REASONING] (step-by-step scientific thinking) → [CODE] (runnable R/Python implementation).
| Split | Traces |
|---|---|
| Train | 1,268 |
| Val | 159 |
| Test | 159 |
| Total | 1,586 |
| Category | Traces | Example Methods |
|---|---|---|
| SDM | 533 | MaxEnt, BRT, GAM, GLM, Point Process, Deep Learning, ensemble |
| Bayesian | 207 | INLA, JAGS, Stan, JSDM, HMSC, BART |
| Community/Diversity | 147 | NMDS, PERMANOVA, functional diversity, niche overlap |
| Occupancy/Abundance | 131 | occupancy, N-mixture, capture-recapture, distance sampling |
| Molecular Ecology | 78 | eDNA, metabarcoding, amplicon analysis |
| Landscape | 61 | fragmentation, connectivity, metapopulation |
| Machine Learning | 60 | XGBoost, SVM, random forest, clustering |
| Remote Sensing | 58 | NDVI, land cover, Google Earth Engine |
| Phylogenetics | 48 | PGLS, OU models, ancestral state, diversification |
| Climate Change | 41 | range shifts, phenology, refugia |
| Conservation | 37 | Marxan, Zonation, PVA, corridor design |
| Movement | 19 | SSF, Brownian bridge, HMM, home range |
| Population | 15 | Leslie matrix, IPM, Lotka-Volterra |
| Macroecology | 11 | species-area, latitudinal gradients, endemism |
| Causal/Time Series | 10 | CCM, wavelet, changepoint |
| Network | 7 | food webs, bipartite, host-parasite |
| Simulation | 2 | agent-based, individual-based models |
Each sample is a chat conversation in ShareGPT/OpenAI format:
{
"id": "eco-00042",
"domain": "ecology",
"method": "maxent",
"method_category": "sdm",
"messages": [
{
"role": "system",
"content": "You are an expert ecologist and scientific programmer..."
},
{
"role": "user",
"content": "We analyzed habitat suitability for Ara macao across..."
},
{
"role": "assistant",
"content": "[CONTEXT]\n...\n\n[REASONING]\n...\n\n[CODE]\n```r\nlibrary(dismo)\n...\n```"
}
],
"metadata": {
"paper_title": "...",
"paper_id": "arxiv:2405.xxxxx",
"doi": "10.xxxx/...",
"language": "R",
"tags": ["sdm", "maxent"],
"quality_score": 85.0,
"source": "deepseek-v4-pro",
"generated_at": "2026-06-01"
}
}
from datasets import load_dataset
ds = load_dataset("alrobles/ecocoder-scientific-reasoning")
print(ds["train"][0]["messages"])
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
"nvidia/Nemotron-3-Nano-30B-A3B-BF16",
max_seq_length=512,
load_in_4bit=True,
)
# Dataset is already in chat template format — ready for SFTTrainer
from trl import SFTTrainer
trainer = SFTTrainer(
model=model,
train_dataset=ds["train"],
# ...
)
PubMed FTS5 (36M articles) ──┐
GBIF Literature (61K papers) ──┤
arXiv API ──┘
│
▼
LACS classifier (PU-learning) → domain filtering
│
▼
DeepSeek v4 Pro (reasoning_effort=high, temperature=0.2)
│
▼
CoT traces: [CONTEXT] → [REASONING] → [CODE]
│
▼
Quality filter (≥30/100) + method classification
│
▼
ecocoder-scientific-reasoning (this dataset)
This dataset is designed to grow beyond ecology:
@dataset{robles2026ecocoder,
title={ecocoder-scientific-reasoning: Chain-of-Thought Training Data for Ecological AI},
author={Robles Fernandez, Angel Luis},
year={2026},
url={https://huggingface.co/datasets/alrobles/ecocoder-scientific-reasoning},
note={Generated via DeepSeek v4 Pro CoT distillation from PubMed, GBIF, and arXiv}
}
Apache 2.0