---
library_name: sklearn
license: mit
tags:
- sklearn
- skops
- tabular-classification
model_format: pickle
model_file: RandomForestClassifier.joblib
widget:
- structuredData:
age:
- 50
- 31
- 32
bd2:
- 0.627
- 0.351
- 0.672
id:
- ICU200010
- ICU200011
- ICU200012
insurance:
- 0
- 0
- 1
m11:
- 33.6
- 26.6
- 23.3
pl:
- 148
- 85
- 183
pr:
- 72
- 66
- 64
prg:
- 6
- 1
- 8
sepsis:
- Positive
- Negative
- Positive
sk:
- 35
- 29
- 0
ts:
- 0
- 0
- 0
---
# Model description
[More Information Needed]
## Intended uses & limitations
[More Information Needed]
## Training Procedure
[More Information Needed]
### Hyperparameters
Click to expand
| Hyperparameter | Value |
|------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| memory | |
| steps | [('preprocessor', ColumnTransformer(transformers=[('numerical_pipeline',
Pipeline(steps=[('log_transformations',
FunctionTransformer(func=
('imputer',
SimpleImputer(strategy='median')),
('scaler', RobustScaler())]),
['prg', 'pl', 'pr', 'sk', 'ts', 'm11', 'bd2',
'age']),
('categorical_pipeline',
Pipeline(steps=[('as_categorical',
FunctionTransformer(func=
sparse_output=False))]),
['insurance']),
('feature_creation_pipeline',
Pipeline(steps=[('feature_creation',
FunctionTransformer(func=
('imputer',
SimpleImputer(strategy='most_frequent')),
('encoder',
OneHotEncoder(drop='first',
handle_unknown='infrequent_if_exist',
sparse_output=False))]),
['age'])])), ('feature-selection', SelectKBest(k='all',
score_func=
Pipeline(steps=[('log_transformations',
FunctionTransformer(func=
('imputer',
SimpleImputer(strategy='median')),
('scaler', RobustScaler())]),
['prg', 'pl', 'pr', 'sk', 'ts', 'm11', 'bd2',
'age']),
('categorical_pipeline',
Pipeline(steps=[('as_categorical',
FunctionTransformer(func=
sparse_output=False))]),
['insurance']),
('feature_creation_pipeline',
Pipeline(steps=[('feature_creation',
FunctionTransformer(func=
('imputer',
SimpleImputer(strategy='most_frequent')),
('encoder',
OneHotEncoder(drop='first',
handle_unknown='infrequent_if_exist',
sparse_output=False))]),
['age'])]) |
| feature-selection | SelectKBest(k='all',
score_func=
FunctionTransformer(func=
('imputer', SimpleImputer(strategy='median')),
('scaler', RobustScaler())]), ['prg', 'pl', 'pr', 'sk', 'ts', 'm11', 'bd2', 'age']), ('categorical_pipeline', Pipeline(steps=[('as_categorical',
FunctionTransformer(func=
('imputer', SimpleImputer(strategy='most_frequent')),
('encoder',
OneHotEncoder(drop='first',
handle_unknown='infrequent_if_exist',
sparse_output=False))]), ['insurance']), ('feature_creation_pipeline', Pipeline(steps=[('feature_creation',
FunctionTransformer(func=
('imputer', SimpleImputer(strategy='most_frequent')),
('encoder',
OneHotEncoder(drop='first',
handle_unknown='infrequent_if_exist',
sparse_output=False))]), ['age'])] |
| preprocessor__verbose | False |
| preprocessor__verbose_feature_names_out | True |
| preprocessor__numerical_pipeline | Pipeline(steps=[('log_transformations',
FunctionTransformer(func=
('imputer', SimpleImputer(strategy='median')),
('scaler', RobustScaler())]) |
| preprocessor__categorical_pipeline | Pipeline(steps=[('as_categorical',
FunctionTransformer(func=
('imputer', SimpleImputer(strategy='most_frequent')),
('encoder',
OneHotEncoder(drop='first',
handle_unknown='infrequent_if_exist',
sparse_output=False))]) |
| preprocessor__feature_creation_pipeline | Pipeline(steps=[('feature_creation',
FunctionTransformer(func=
('imputer', SimpleImputer(strategy='most_frequent')),
('encoder',
OneHotEncoder(drop='first',
handle_unknown='infrequent_if_exist',
sparse_output=False))]) |
| preprocessor__numerical_pipeline__memory | |
| preprocessor__numerical_pipeline__steps | [('log_transformations', FunctionTransformer(func=
sparse_output=False))] |
| preprocessor__categorical_pipeline__verbose | False |
| preprocessor__categorical_pipeline__as_categorical | FunctionTransformer(func=
sparse_output=False) |
| preprocessor__categorical_pipeline__as_categorical__accept_sparse | False |
| preprocessor__categorical_pipeline__as_categorical__check_inverse | True |
| preprocessor__categorical_pipeline__as_categorical__feature_names_out | |
| preprocessor__categorical_pipeline__as_categorical__func |
sparse_output=False))] |
| preprocessor__feature_creation_pipeline__verbose | False |
| preprocessor__feature_creation_pipeline__feature_creation | FunctionTransformer(func=
sparse_output=False) |
| preprocessor__feature_creation_pipeline__feature_creation__accept_sparse | False |
| preprocessor__feature_creation_pipeline__feature_creation__check_inverse | True |
| preprocessor__feature_creation_pipeline__feature_creation__feature_names_out | |
| preprocessor__feature_creation_pipeline__feature_creation__func |
Pipeline(steps=[('preprocessor',ColumnTransformer(transformers=[('numerical_pipeline',Pipeline(steps=[('log_transformations',FunctionTransformer(func=<ufunc 'log1p'>)),('imputer',SimpleImputer(strategy='median')),('scaler',RobustScaler())]),['prg', 'pl', 'pr', 'sk','ts', 'm11', 'bd2', 'age']),('categorical_pipeline',Pipeline(steps=[('as_categorical',Funct...FunctionTransformer(func=<function feature_creation at 0x000001E7F14514E0>)),('imputer',SimpleImputer(strategy='most_frequent')),('encoder',OneHotEncoder(drop='first',handle_unknown='infrequent_if_exist',sparse_output=False))]),['age'])])),('feature-selection',SelectKBest(k='all',score_func=<function mutual_info_classif at 0x000001E7EDA4E480>)),('classifier',RandomForestClassifier(n_jobs=-1, random_state=2024))])In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
Pipeline(steps=[('preprocessor',ColumnTransformer(transformers=[('numerical_pipeline',Pipeline(steps=[('log_transformations',FunctionTransformer(func=<ufunc 'log1p'>)),('imputer',SimpleImputer(strategy='median')),('scaler',RobustScaler())]),['prg', 'pl', 'pr', 'sk','ts', 'm11', 'bd2', 'age']),('categorical_pipeline',Pipeline(steps=[('as_categorical',Funct...FunctionTransformer(func=<function feature_creation at 0x000001E7F14514E0>)),('imputer',SimpleImputer(strategy='most_frequent')),('encoder',OneHotEncoder(drop='first',handle_unknown='infrequent_if_exist',sparse_output=False))]),['age'])])),('feature-selection',SelectKBest(k='all',score_func=<function mutual_info_classif at 0x000001E7EDA4E480>)),('classifier',RandomForestClassifier(n_jobs=-1, random_state=2024))])
ColumnTransformer(transformers=[('numerical_pipeline',Pipeline(steps=[('log_transformations',FunctionTransformer(func=<ufunc 'log1p'>)),('imputer',SimpleImputer(strategy='median')),('scaler', RobustScaler())]),['prg', 'pl', 'pr', 'sk', 'ts', 'm11', 'bd2','age']),('categorical_pipeline',Pipeline(steps=[('as_categorical',FunctionTransformer(func=<function as_...handle_unknown='infrequent_if_exist',sparse_output=False))]),['insurance']),('feature_creation_pipeline',Pipeline(steps=[('feature_creation',FunctionTransformer(func=<function feature_creation at 0x000001E7F14514E0>)),('imputer',SimpleImputer(strategy='most_frequent')),('encoder',OneHotEncoder(drop='first',handle_unknown='infrequent_if_exist',sparse_output=False))]),['age'])])
['prg', 'pl', 'pr', 'sk', 'ts', 'm11', 'bd2', 'age']
FunctionTransformer(func=<ufunc 'log1p'>)
SimpleImputer(strategy='median')
RobustScaler()
['insurance']
FunctionTransformer(func=<function as_category at 0x000001E7F1450680>)
SimpleImputer(strategy='most_frequent')
OneHotEncoder(drop='first', handle_unknown='infrequent_if_exist',sparse_output=False)
['age']
FunctionTransformer(func=<function feature_creation at 0x000001E7F14514E0>)
SimpleImputer(strategy='most_frequent')
OneHotEncoder(drop='first', handle_unknown='infrequent_if_exist',sparse_output=False)
SelectKBest(k='all',score_func=<function mutual_info_classif at 0x000001E7EDA4E480>)
RandomForestClassifier(n_jobs=-1, random_state=2024)