diff --git a/docs/src/examples/Thermal_Generation_Dispatch_Example.jl b/docs/src/examples/Thermal_Generation_Dispatch_Example.jl index 1fe273aa3..b5846c0d5 100644 --- a/docs/src/examples/Thermal_Generation_Dispatch_Example.jl +++ b/docs/src/examples/Thermal_Generation_Dispatch_Example.jl @@ -158,7 +158,9 @@ Plots.plot( d, data_results[1, :, 1:(I+1)]; title = "Generation by Demand", - label = ["Thermal Generation 1" "Thermal Generation 2" "Thermal Generation 3" "Generation Deficit"], + label = [ + "Thermal Generation 1" "Thermal Generation 2" "Thermal Generation 3" "Generation Deficit" + ], xlabel = "Demand [unit]", ylabel = "Generation [unit]", ) @@ -168,7 +170,9 @@ Plots.plot( d, data_results[1, :, (I+2):(2*(I+1))]; title = "Sensitivity of Generation by Demand", - label = ["T. Gen. 1 Sensitivity" "T. Gen. 2 Sensitivity" "T. Gen. 3 Sensitivity" "Gen. Deficit Sensitivity"], + label = [ + "T. Gen. 1 Sensitivity" "T. Gen. 2 Sensitivity" "T. Gen. 3 Sensitivity" "Gen. Deficit Sensitivity" + ], xlabel = "Demand [unit]", ylabel = "Sensitivity [-]", ) @@ -179,7 +183,9 @@ Plots.plot( d, data_results[2, :, 1:(I+1)]; title = "Generation by Demand", - label = ["Thermal Generation 1" "Thermal Generation 2" "Thermal Generation 3" "Generation Deficit"], + label = [ + "Thermal Generation 1" "Thermal Generation 2" "Thermal Generation 3" "Generation Deficit" + ], xlabel = "Demand [unit]", ylabel = "Generation [unit]", ) @@ -189,7 +195,9 @@ Plots.plot( d, data_results[2, :, (I+2):(2*(I+1))]; title = "Sensitivity of Generation by Demand", - label = ["T. Gen. 1 Sensitivity" "T. Gen. 2 Sensitivity" "T. Gen. 3 Sensitivity" "Gen. Deficit Sensitivity"], + label = [ + "T. Gen. 1 Sensitivity" "T. Gen. 2 Sensitivity" "T. Gen. 3 Sensitivity" "Gen. Deficit Sensitivity" + ], xlabel = "Demand [unit]", ylabel = "Sensitivity [-]", ) diff --git a/docs/src/examples/Thermal_Generation_Dispatch_Example_new.jl b/docs/src/examples/Thermal_Generation_Dispatch_Example_new.jl index 391f3f2f3..0872c2bd9 100644 --- a/docs/src/examples/Thermal_Generation_Dispatch_Example_new.jl +++ b/docs/src/examples/Thermal_Generation_Dispatch_Example_new.jl @@ -154,7 +154,9 @@ Plots.plot( d, data_results[1, :, 1:(I+1)]; title = "Generation by Demand", - label = ["Thermal Generation 1" "Thermal Generation 2" "Thermal Generation 3" "Generation Deficit"], + label = [ + "Thermal Generation 1" "Thermal Generation 2" "Thermal Generation 3" "Generation Deficit" + ], xlabel = "Demand [unit]", ylabel = "Generation [unit]", ) @@ -164,7 +166,9 @@ Plots.plot( d, data_results[1, :, (I+2):(2*(I+1))]; title = "Sensitivity of Generation by Demand", - label = ["T. Gen. 1 Sensitivity" "T. Gen. 2 Sensitivity" "T. Gen. 3 Sensitivity" "Gen. Deficit Sensitivity"], + label = [ + "T. Gen. 1 Sensitivity" "T. Gen. 2 Sensitivity" "T. Gen. 3 Sensitivity" "Gen. Deficit Sensitivity" + ], xlabel = "Demand [unit]", ylabel = "Sensitivity [-]", ) @@ -175,7 +179,9 @@ Plots.plot( d, data_results[2, :, 1:(I+1)]; title = "Generation by Demand", - label = ["Thermal Generation 1" "Thermal Generation 2" "Thermal Generation 3" "Generation Deficit"], + label = [ + "Thermal Generation 1" "Thermal Generation 2" "Thermal Generation 3" "Generation Deficit" + ], xlabel = "Demand [unit]", ylabel = "Generation [unit]", ) @@ -185,7 +191,9 @@ Plots.plot( d, data_results[2, :, (I+2):(2*(I+1))]; title = "Sensitivity of Generation by Demand", - label = ["T. Gen. 1 Sensitivity" "T. Gen. 2 Sensitivity" "T. Gen. 3 Sensitivity" "Gen. Deficit Sensitivity"], + label = [ + "T. Gen. 1 Sensitivity" "T. Gen. 2 Sensitivity" "T. Gen. 3 Sensitivity" "Gen. Deficit Sensitivity" + ], xlabel = "Demand [unit]", ylabel = "Sensitivity [-]", ) diff --git a/docs/src/examples/autotuning-ridge.jl b/docs/src/examples/autotuning-ridge.jl index 17619aef1..28cb6661f 100644 --- a/docs/src/examples/autotuning-ridge.jl +++ b/docs/src/examples/autotuning-ridge.jl @@ -86,10 +86,7 @@ for α in αs ŷ_test = X_test * ŵ ŷ_train = X_train * ŵ push!(mse_test, LinearAlgebra.norm(ŷ_test - y_test)^2 / (2 * Ntest * D)) - push!( - mse_train, - LinearAlgebra.norm(ŷ_train - y_train)^2 / (2 * Ntrain * D), - ) + push!(mse_train, LinearAlgebra.norm(ŷ_train - y_train)^2 / (2 * Ntrain * D)) end # Visualize the Mean Score Error metric diff --git a/docs/src/examples/autotuning-ridge_new.jl b/docs/src/examples/autotuning-ridge_new.jl index b7fa24a76..87f05ca95 100644 --- a/docs/src/examples/autotuning-ridge_new.jl +++ b/docs/src/examples/autotuning-ridge_new.jl @@ -93,10 +93,7 @@ for α in αs ŷ_test = X_test * ŵ ŷ_train = X_train * ŵ push!(mse_test, LinearAlgebra.norm(ŷ_test - y_test)^2 / (2 * Ntest * D)) - push!( - mse_train, - LinearAlgebra.norm(ŷ_train - y_train)^2 / (2 * Ntrain * D), - ) + push!(mse_train, LinearAlgebra.norm(ŷ_train - y_train)^2 / (2 * Ntrain * D)) end # Visualize the Mean Score Error metric diff --git a/docs/src/examples/sensitivity-analysis-ridge.jl b/docs/src/examples/sensitivity-analysis-ridge.jl index a4d3c0465..5604d0b69 100644 --- a/docs/src/examples/sensitivity-analysis-ridge.jl +++ b/docs/src/examples/sensitivity-analysis-ridge.jl @@ -140,13 +140,7 @@ p = Plots.scatter( label = "", ) mi, ma = minimum(X), maximum(X) -Plots.plot!( - p, - [mi, ma], - [mi * ŵ + b̂, ma * ŵ + b̂]; - color = :blue, - label = "", -) +Plots.plot!(p, [mi, ma], [mi * ŵ + b̂, ma * ŵ + b̂]; color = :blue, label = "") Plots.title!("Regression slope sensitivity with respect to x") # @@ -159,13 +153,7 @@ p = Plots.scatter( label = "", ) mi, ma = minimum(X), maximum(X) -Plots.plot!( - p, - [mi, ma], - [mi * ŵ + b̂, ma * ŵ + b̂]; - color = :blue, - label = "", -) +Plots.plot!(p, [mi, ma], [mi * ŵ + b̂, ma * ŵ + b̂]; color = :blue, label = "") Plots.title!("Regression slope sensitivity with respect to y") # Note the points with less central `x` values induce a greater y sensitivity of the slope. diff --git a/docs/src/examples/sensitivity-analysis-ridge_new.jl b/docs/src/examples/sensitivity-analysis-ridge_new.jl index aa41f80a2..59d98fecb 100644 --- a/docs/src/examples/sensitivity-analysis-ridge_new.jl +++ b/docs/src/examples/sensitivity-analysis-ridge_new.jl @@ -140,13 +140,7 @@ p = Plots.scatter( label = "", ) mi, ma = minimum(X), maximum(X) -Plots.plot!( - p, - [mi, ma], - [mi * ŵ + b̂, ma * ŵ + b̂]; - color = :blue, - label = "", -) +Plots.plot!(p, [mi, ma], [mi * ŵ + b̂, ma * ŵ + b̂]; color = :blue, label = "") Plots.title!("Regression slope sensitivity with respect to x") # @@ -159,13 +153,7 @@ p = Plots.scatter( label = "", ) mi, ma = minimum(X), maximum(X) -Plots.plot!( - p, - [mi, ma], - [mi * ŵ + b̂, ma * ŵ + b̂]; - color = :blue, - label = "", -) +Plots.plot!(p, [mi, ma], [mi * ŵ + b̂, ma * ŵ + b̂]; color = :blue, label = "") Plots.title!("Regression slope sensitivity with respect to y") # Note the points with less central `x` values induce a greater y sensitivity of the slope.