
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
A lightweight and extensible Python package for managing data, tailored for researchers working with structured data.
A lightweight and extensible Python package for managing data, tailored for researchers working with structured data. In addition to general data management features, the package introduces a data structure specifically optimized for ML research. This common format enables researchers to efficiently test new algorithms and methods, streamlining collaboration and ensuring consistency in data management across projects.
For executing the quickstart examples and get an overview of dwrappr's functionalities, please have a look at IEEE_examples.
Additional functionalities are showcased in:
DATASET_FOLDER = "./data/datasets/"
available_datasets = DataSet.get_available_datasets_in_folder(
DATASET_FOLDER
)
available_datasets.T
DATASET_FILEPATH = "./data/datasets/manufacturing_process_ds.joblib"
ds = DataSet.load(DATASET_FILEPATH)
RAW_DATA_FILEPATH= "./data/raw_data.csv"
#load raw data into pandas.DataFrame
df = pd.read_csv(RAW_DATA_FILEPATH)
"""
<some manual dataset preprocessing steps
like dropping missing values and chaning dtypes>
"""
#define metaData
meta = DataSetMeta(
name = "example_dataset",
synthetic_data=True,
time_series=False,
feature_names=["feature"],
target_names=["target"]
)
#generate DataSet
ds = DataSet.from_dataframe(
df=df,
meta=meta
)
#saving dataset
ds.save("./data/example_dataset.joblib", drop_meta_json=True)
(train/test-split)
import numpy as np
n_instances = 100
# Create the 'product_id' feature with 3 different categorical values
product_ids = np.random.choice(['1001', '2002', '3003', '4004', '5005', '6006', '7007'], size=n_instances)
# Generate two additional numeric features
feature_1 = np.random.rand(n_instances) * 100 # Random numbers between 0 and 100
feature_2 = np.random.rand(n_instances) * 50 # Random numbers between 0 and 50
# Generate a numeric target
target = feature_1 * 0.5 + feature_2 * 0.3 + np.random.randn(n_instances) * 5 # Adding some noise
# Create a DataFrame
df = pd.DataFrame({
'product_id': product_ids,
'feature_1': feature_1,
'feature_2': feature_2,
'target': target
})
ds = DataSet.from_dataframe(
df=df,
meta = DataSetMeta(
name = "example_dataset",
synthetic_data=True,
time_series=False,
feature_names=["product_id", "feature_1", "feature_2"],
target_names=["target"]
)
)
train_ds, test_ds = ds.split_dataset(
first_ds_size=0.5,
shuffle=True,
group_by_features=["product_id"]
)
See Documentation for details.
pip install dwrappr
pip install dwrappr[light]
(keep package updated with pip install dwrappr --upgrade
)
This project is maintained by Nils
FAQs
A lightweight and extensible Python package for managing data, tailored for researchers working with structured data.
We found that dwrappr 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.