
Research
/Security News
Laravel Lang Compromised with RCE Backdoor Across 700+ Versions
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.
turba-models
Advanced tools
Model package for loading pretrained soil fertility and fertilizer recommendation models for Morocco.
Model package for loading pretrained soil fertility and fertilizer recommendation models for Morocco.
turba-models is the pretrained model package of the turba ecosystem. It provides a simple way to inspect the published model artifacts, load a model for a supported crop, and generate direct NPK recommendations.
This release publishes one direct recommendation model per available crop. The models were selected from the following candidates using a fixed deterministic 80/20 split and benchmarked with the same evaluation protocol:
The published models use only the following input features:
longitudelatitudesoil_phorganic_matter_pctavailable_p2o5available_k2oOutputs are:
recommended_nrecommended_p2o5recommended_k2opip install turba-models
For compatibility with the packaged artifacts, use an environment with:
scikit-learn >= 1.6, < 1.7lightgbm >= 4, < 5xgboost >= 2, < 3import pandas as pd
import turba_models as tm
print(tm.list_models())
model = tm.load_model("Wheat (Rainfed)")
X = pd.DataFrame([
{
"longitude": -6.85,
"latitude": 33.97,
"soil_ph": 7.1,
"organic_matter_pct": 1.2,
"available_p2o5": 45.0,
"available_k2o": 180.0,
}
])
predictions = tm.predict_recommendation(model, X)
print(predictions)
from turba_models import (
list_models,
load_model,
predict_recommendation,
regression_report,
)
list_models()Returns the published model entries and their metadata.
load_model(model_name)Loads a packaged .joblib model. The function accepts either the crop name or the published model name.
predict_recommendation(model, X)Runs inference and returns a DataFrame with:
recommended_nrecommended_p2o5recommended_k2oregression_report(y_true, y_pred, target_names=None)Returns a DataFrame with:
r2maemedaermsemapesmape.joblib model files under src/turba_models/models/notebooks/reports/FAQs
Model package for loading pretrained soil fertility and fertilizer recommendation models for Morocco.
We found that turba-models demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.

Security News
Socket found a malicious postinstall hook across 700+ GitHub repos, including PHP packages on Packagist and Node.js project repositories.

Security News
Vibe coding at scale is reshaping how packages are created, contributed, and selected across the software supply chain