final submission

This commit is contained in:
2022-02-14 22:25:07 -07:00
parent 7fe5680a67
commit dca83fe9cf
7 changed files with 113 additions and 25 deletions

View File

@@ -53,7 +53,7 @@ p1 = plot(df, dimensions = features, kind = "splom", Layout(title = "Raw Data"))
CSV.write("prepped.csv", df)
df.cluster = [1, 3, 2, 1, 2, 1, 1, 3, 1, 3, 2, 3, 1, 1, 2, 2, 1, 3, 1, 3, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 3, 2, 1, 1, 2, 2, 3, 3, 2, 2, 2, 1,] # From matlab kmeans idx
df.cluster = "Cluster " .* ([1, 3, 2, 1, 2, 1, 1, 3, 1, 3, 2, 3, 1, 1, 2, 2, 1, 3, 1, 3, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 3, 2, 1, 1, 2, 2, 3, 3, 2, 2, 2, 1,] .|> string) # From matlab kmeans idx
p2 = plot(df, dimensions = features, color = :cluster, kind = "splom", Layout(title = "Clustered Data"))
@@ -62,3 +62,10 @@ p2 = plot(df, dimensions = features, color = :cluster, kind = "splom", Layout(ti
savefig(p1, "prepped.svg", width = 1000, height = 1000)
savefig(p2, "prepped_clustered.svg", width = 1000, height = 1000)
open("./prepped.html", "w") do io
PlotlyBase.to_html(io, p1.plot)
end
open("./prepped_clustered.html", "w") do io
PlotlyBase.to_html(io, p2.plot)
end