This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JuliaMono for lstlisting algs, added ce_surrogate.jl
- Loading branch information
Showing
11 changed files
with
3,440 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
function ce_surrogate(S, 𝐌, m, m_elite, k_max) | ||
for k in 1:k_max | ||
mₑ, m_elite = evaluation_schedule(k, k_max) | ||
𝐗 = rand(𝐌, mₑ) | ||
𝐘 = map(S, eachcol(𝐗)) | ||
𝐞 = 𝐗[:, sortperm(𝐘)[1:m_elite]] | ||
𝐄 = model_elite_set!(𝐗, 𝐘, 𝐌, 𝐞, m, m_elite) | ||
𝐌 = fit(𝐌, 𝐄) | ||
end | ||
return 𝐌 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
\usepackage{fontspec} | ||
|
||
\newfontfamily\JuliaMono{JuliaMono}[ | ||
UprightFont = *-Regular, | ||
BoldFont = *-Bold, | ||
Path = ./preamble/julia_mono_listings/, | ||
Extension = .ttf] | ||
\newfontface\JuliaMonoRegular{JuliaMono-Regular}[Path=./preamble/julia_mono_listings/] | ||
\newfontface\JuliaMonoBold{JuliaMono-Bold}[Path=./preamble/julia_mono_listings/] | ||
|
||
% We don't want the global mono font to be JuliaMono. | ||
% \setmonofont{JuliaMono-Medium}[Contextuals=Alternate] |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.