Skip to content

Commit

Permalink
Add item5 to example DataFrame and update data preparation step
Browse files Browse the repository at this point in the history
  • Loading branch information
yanwenwang24 committed Nov 11, 2024
1 parent 2631b35 commit f989ce9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/example.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ df = DataFrame(
item1 = [generate_response(c) for c in true_classes],
item2 = [generate_response(c) for c in true_classes],
item3 = [generate_response(c) for c in true_classes],
item4 = categorical([rand(["Yes", "No"]) for _ in 1:n_samples])
item4 = categorical([rand(["Yes", "No"]) for _ in 1:n_samples]),
item5 = categorical([rand(["Yes", "No"]) for _ in 1:n_samples])
)

# Step 1: Data Preparation
data, n_categories = prepare_data(df, :item1, :item2, :item3, :item4)
data, n_categories = prepare_data(df, :item1, :item2, :item3, :item4, :item5)

# Step 2: Model Selection - Try different numbers of classes
results = []
Expand Down

0 comments on commit f989ce9

Please sign in to comment.