Skip to content

Commit

Permalink
Split plot_tfbdry code into multiple lines (#47)
Browse files Browse the repository at this point in the history
* Fixes to JOSS code snippets. by splitting code into multiple lines to fit into 
letter size paper

* Update to VERSION v0.1.17
  • Loading branch information
zengfung authored Jan 23, 2022
1 parent 542b250 commit f0ac240
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "WaveletsExt"
uuid = "8f464e1e-25db-479f-b0a5-b7680379e03f"
authors = ["Zeng Fung Liew <[email protected]>", "Shozen Dan <[email protected]>"]
version = "0.1.16"
version = "0.1.17"

[deps]
AverageShiftedHistograms = "77b51b56-6f8f-5c3a-9cb4-d71f9594ea6e"
Expand Down
15 changes: 12 additions & 3 deletions paper/paper.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,18 @@ xw = wpdall(x, wt, 6)

# ----- Joint Best Basis (JBB)
tree = bestbasistree(xw, JBB())
p1 = plot_tfbdry(tree, node_color=:green, line_color=:black, background_color=:white) |>
p1 = plot_tfbdry(tree,
node_color=:green,
line_color=:black,
background_color=:white) |>
p -> plot!(p, title="JBB")

# ----- Least Statistically Dependent Basis (LSDB)
tree = bestbasistree(xw, LSDB())
p2 = plot_tfbdry(tree, node_color=:green, line_color=:black, background_color=:white) |>
p2 = plot_tfbdry(tree,
node_color=:green,
line_color=:black,
background_color=:white) |>
p -> plot!(p, title="LSDB")

# Combine and save plot
Expand Down Expand Up @@ -159,7 +165,10 @@ ldb = LocalDiscriminantBasis(
= fit_transform(ldb, X, y)

# Plot the best basis for feature extraction
p2 = plot_tfbdry(ldb.tree, node_color=:green, line_color=:black, background_color=:white)
p2 = plot_tfbdry(ldb.tree,
node_color=:green,
line_color=:black,
background_color=:white)
plot!(p2, title="Basis Selection using LDB")

# Combine and save plot
Expand Down

2 comments on commit f0ac240

@zengfung
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/53009

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.17 -m "<description of version>" f0ac240be868c2f2f2ec9d497047a072e04649f8
git push origin v0.1.17

Please sign in to comment.