![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
FPBoost: a gradient boosting model for survival analysis that builds hazard functions as a combination of fully parametric hazards.
FPBoost is a Python library for survival analysis that introduces a novel algorithm for estimating hazard functions. Built upon the gradient boosting framework, it uses a composition of fully parametric hazard functions to model time-to-event data. FPBoost directly optimizes the survival likelihood via gradient boosting, providing improved risk estimation according to concordance and calibration metrics. FPBoost is fully compatible with scikit-survival for seamless integration into existing workflows.
To install the latest version of FPBoost from source, clone the repository and follow these steps:
git clone https://github.com/archettialberto/fpboost.git
cd fpboost
conda env create -f environment.yaml
conda activate fpboost
poetry install
Here's a simple example of how to use FPBoost:
from fpboost.models import FPBoost
from sksurv.datasets import load_breast_cancer
from sksurv.preprocessing import OneHotEncoder
from sklearn.model_selection import train_test_split
# Load and preprocess the dataset
data_x, data_y = load_breast_cancer()
encoder = OneHotEncoder()
X, y = encoder.fit_transform(data_x).to_numpy(), data_y
# Split into training and testing sets
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)
# Initialize the model
model = FPBoost(
n_estimators=100,
learning_rate=0.1,
max_depth=3,
random_state=42
)
# Fit the model
model.fit(X_train, y_train)
# Predict survival probabilities
surv_probs = model.predict_survival_function(X_test)
# Evaluate the model
from sksurv.metrics import concordance_index_censored
c_index = concordance_index_censored(
y_test['e.tdm'], # event indicator
y_test['t.tdm'], # time to event
model.predict(X_test)
)
print("Concordance Index:", c_index[0])
For detailed usage instructions and API reference, please refer to the FPBoost Documentation.
If you use FPBoost in your research, please cite our paper:
@article{archetti2024fpboost,
title = {FPBoost: Fully Parametric Gradient Boosting for Survival Analysis},
author = {Alberto Archetti and Eugenio Lomurno and Diego Piccinotti and Matteo Matteucci},
journal = {arXiv preprint arXiv:2409.13363},
year = {2024},
url = {https://arxiv.org/abs/2409.13363}
}
FAQs
FPBoost: a gradient boosting model for survival analysis that builds hazard functions as a combination of fully parametric hazards.
We found that fpboost demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.