Skip to content

Commit 29cadc5

Browse files
authored
Merge pull request #58 from JuliaAI/dev
For a 0.1.3 release
2 parents e0478e4 + 30e2020 commit 29cadc5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+30915
-46
lines changed

.github/workflows/documenter.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
- main
8+
tags: '*'
9+
pull_request:
10+
11+
concurrency:
12+
# Skip intermediate builds: always.
13+
# Cancel intermediate builds: only if it is a pull request build.
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
16+
17+
jobs:
18+
build:
19+
permissions:
20+
contents: write
21+
pull-requests: read
22+
statuses: write
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: julia-actions/setup-julia@v2
27+
with:
28+
version: '1.10'
29+
- uses: julia-actions/cache@v1
30+
- name: Install dependencies
31+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
32+
- name: Build and deploy
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
35+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
36+
run: julia --project=docs/ docs/make.jl

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,8 @@ meh/*.ipynb
2828
/*.jl
2929
scratchpad/
3030
examples/test.jl
31+
catboost_info/**
32+
/catboost_info
33+
/catboost_info
34+
/docs/src/tutorials/adult_example/.CondaPkg
35+
/docs/src/tutorials/adult_example/catboost_info

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name = "MLJTransforms"
22
uuid = "23777cdb-d90c-4eb0-a694-7c2b83d5c1d6"
33
authors = ["Essam <[email protected]> and contributors"]
4-
version = "0.1.2"
4+
5+
version = "0.1.3"
56

67
[deps]
78
BitBasis = "50ba71b6-fa0f-514d-ae9a-0916efc90dcf"

README.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
# MLJTransforms.jl
2+
13
![logg](https://github.com/JuliaAI/MLJTransforms/assets/49572294/8d119672-e641-4971-884d-dcb793ba0c05)
24

3-
Preprocessing, transformation and encoding techniques for MLJ.
5+
6+
A Julia package providing a wide range of categorical encoders and data transformers to be used with the [MLJ](https://juliaai.github.io/MLJ.jl/dev/) package.
7+
8+
[![Build Status](https://github.com/JuliaAI/Imbalance.jl/workflows/CI/badge.svg)](https://github.com/JuliaAI/Imbalance.jl/actions)
9+
[![Docs](https://img.shields.io/badge/docs-dev-blue.svg)](https://juliaai.github.io/MLJTransforms.jl/dev/)
10+
11+
## Quick Start
12+
13+
For the following demo, you will need to additionally run `Pkg.add("RDatasets")`.
14+
15+
```julia
16+
using MLJ, MLJTransforms
17+
import RDatasets
18+
19+
# 1. Load Data
20+
X = RDatasets.dataset("HSAUR", "Forbes2000");
21+
22+
# 2. Load the model
23+
FrequencyEncoder = @load FrequencyEncoder pkg="MLJTransforms"
24+
encoder = FrequencyEncoder(
25+
features=[:Country, :Category], # The categorical columns to select
26+
ignore=false, # Whether to exclude or include selected columns
27+
ordered_factor = false, # Whether to also encode columns of ordered factor elements
28+
normalize=true # Whether to normalize the frequencies used for encoding
29+
)
30+
31+
32+
# 3. Wrap it in a machine and fit
33+
mach = fit!(machine(encoder, X))
34+
Xnew = transform(mach, X)
35+
```
36+
37+
See the full [documentation](https://juliaai.github.io/MLJTransforms.jl/dev/) for more information and a [full list](https://juliaai.github.io/MLJTransforms.jl/dev/all_transformers) of transformers in this package.

docs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build/
2+
site/

0 commit comments

Comments
 (0)