Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add new steps to website #77

Merged
merged 2 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions docs/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ website:
- reference/steps-imputation.qmd
- reference/steps-encoding.qmd
- reference/steps-standardization.qmd
- reference/steps-discretization.qmd
- reference/steps-feature-selection.qmd
- reference/steps-feature-engineering.qmd
- reference/steps-temporal.qmd
- reference/steps-other.qmd

Expand Down Expand Up @@ -151,6 +154,8 @@ quartodoc:
contents:
- OneHotEncode
- CategoricalEncode
- CountEncode
- TargetEncode

- kind: page
path: steps-standardization
Expand All @@ -160,6 +165,30 @@ quartodoc:
contents:
- ScaleStandard

- kind: page
path: steps-discretization
summary:
name: Discretization
desc: Discretization of numeric columns
contents:
- DiscretizeKBins

- kind: page
path: steps-feature-selection
summary:
name: Feature Selection
desc: Selecting useful features for modeling
contents:
- ZeroVariance

- kind: page
path: steps-feature-engineering
summary:
name: Feature Engineering
deepyaman marked this conversation as resolved.
Show resolved Hide resolved
desc: Generating new features
contents:
- PolynomialFeatures

- kind: page
path: steps-temporal
summary:
Expand Down
4 changes: 2 additions & 2 deletions ibisml/steps/discretize.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ class DiscretizeKBins(Step):

Bin all numeric columns.

>>> step = ml.KBinsDiscretizer(ml.numeric(), n_bins=10)
>>> step = ml.DiscretizeKBins(ml.numeric(), n_bins=10)
>>> step.fit_table(p, Metadata())
>>> step.transform_table(p)

Bin specific numeric columns.

>>> step = ml.KBinsDiscretizer(["bill_length_mm"], strategy="quantile")
>>> step = ml.DiscretizeKBins(["bill_length_mm"], strategy="quantile")
>>> step.fit_table(p, Metadata())
>>> step.transform_table(p)
"""
Expand Down
4 changes: 2 additions & 2 deletions ibisml/steps/feature_engineering.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ class PolynomialFeatures(Step):

Generate polynomial features for all numeric columns with a degree is 2.

>>> step = ml.PolynomialFeatures(ml.numeric(), 2)
>>> step = ml.PolynomialFeatures(ml.numeric(), degree=2)

Generate polynomial features a specific set of columns.

>>> step = ml.PolynomialFeatures(["x", "y"], 2)
>>> step = ml.PolynomialFeatures(["x", "y"], degree=2)
"""

def __init__(self, inputs: SelectionType, *, degree: int = 2):
Expand Down
Loading