Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cpp notebook with docker #101

Merged
merged 46 commits into from
Sep 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
ad10fee
start on CPP example notebook
amueller Sep 24, 2020
ec5caaa
debuggggging
amueller Sep 24, 2020
5a78f55
CreateRemoteOptimizer run
amueller Sep 24, 2020
faa52b3
remove debugging message
amueller Sep 24, 2020
6c4b832
Merge branch 'main' into cpp_notebook
amueller Sep 25, 2020
26164bd
slight polish in logging
amueller Sep 25, 2020
08b7d9f
Merge branch 'main' into cpp_notebook
amueller Sep 28, 2020
1707f6d
remove some debugging messages
amueller Sep 28, 2020
a8d83c6
add repr to optimizerMonitor
amueller Sep 28, 2020
3979a4d
add docker --expose to smart cache cpp notebook
amueller Sep 28, 2020
4132aa5
get optimizer data
amueller Sep 28, 2020
544c87a
remove pandas wrangling in favor of get_all_observations
amueller Sep 28, 2020
6c05d93
C# lint
amueller Sep 28, 2020
c61c30a
python lint
amueller Sep 28, 2020
36848db
more C# lint
amueller Sep 28, 2020
72fe013
add random= to logging message
amueller Sep 28, 2020
572ff7b
mentioning starting the optimizer service in the smartcache readme
amueller Sep 28, 2020
181efb8
slight cleanup of smart cache cpp notebook
amueller Sep 28, 2020
f5d925a
add comment on how to configure the optimizer
amueller Sep 28, 2020
a1efb32
add smart cache notebook to website menu
amueller Sep 28, 2020
716b0ed
Update source/Mlos.Agent/MainAgent.cs
amueller Sep 28, 2020
948a9f2
Update source/Mlos.Notebooks/SmartCacheCPP.ipynb
amueller Sep 28, 2020
65f2272
Update source/Mlos.Notebooks/SmartCacheCPP.ipynb
amueller Sep 28, 2020
735e7b0
Update source/Mlos.Notebooks/SmartCacheCPP.ipynb
amueller Sep 28, 2020
1b40af3
Update source/Mlos.Notebooks/SmartCacheCPP.ipynb
amueller Sep 28, 2020
4453131
Update source/Mlos.Notebooks/SmartCacheCPP.ipynb
amueller Sep 28, 2020
dd4005a
Update source/Mlos.Notebooks/SmartCacheCPP.ipynb
amueller Sep 28, 2020
ae9877f
Update source/Mlos.Notebooks/SmartCacheCPP.ipynb
amueller Sep 28, 2020
9e636da
Update source/Mlos.Notebooks/SmartCacheCPP.ipynb
amueller Sep 28, 2020
5409311
Update source/Mlos.Notebooks/SmartCacheCPP.ipynb
amueller Sep 28, 2020
f15b6e8
undo change to settings
amueller Sep 28, 2020
2d4e132
there's no other workloads right now
amueller Sep 28, 2020
e8877a3
Merge branch 'cpp_notebook' of github.com:amueller/MLOS into cpp_note…
amueller Sep 28, 2020
be85b97
Merge branch 'main' into cpp_notebook
amueller Sep 28, 2020
5599955
undo some print messages
amueller Sep 28, 2020
91529a3
add SmartCacheCPP notebook to nbconvert intputs
amueller Sep 28, 2020
827a203
Update source/Mlos.Notebooks/SmartCacheCPP.ipynb
amueller Sep 28, 2020
adf5d61
Update source/Mlos.Notebooks/SmartCacheCPP.ipynb
amueller Sep 28, 2020
6247c52
Update source/Mlos.Notebooks/SmartCacheCPP.ipynb
amueller Sep 28, 2020
c015c5c
Update source/Mlos.Notebooks/SmartCacheCPP.ipynb
amueller Sep 28, 2020
9a29b5b
simplify, add link to Smart Cache notebook
amueller Sep 28, 2020
a49e84e
Merge branch 'cpp_notebook' of github.com:amueller/MLOS into cpp_note…
amueller Sep 28, 2020
66b230c
fix link to smart cache website
amueller Sep 28, 2020
e456f49
revert changes in readme
amueller Sep 28, 2020
43bcd9e
use absolute links in notebook
bpkroth Sep 28, 2020
eda9dd7
Merge pull request #6 from bpkroth/cpp_notebook
amueller Sep 28, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,15 @@ private static void RequestNewConfigurationMessageHandler(SmartCacheProxy.Reques

// Register the observation with the optimizer by sending it a grpc request.
//
Console.WriteLine("Register an observation");

OptimizerProxy.Register(currentConfigJsonString, "HitRate", hitRate);
}

// Now, ask the optimizer for a new configuration suggestion.
//
string newConfigJsonString = OptimizerProxy.Suggest();
Console.WriteLine("Suggesting: " + newConfigJsonString);

var newConfigDictionary = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(newConfigJsonString);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public string Suggest(bool random = false)
});

string suggestedParameter = configurationParameters.ParametersJsonString;
Console.WriteLine($"Suggest {random} {suggestedParameter}");
Console.WriteLine($"Suggest random={random} {suggestedParameter}");
return suggestedParameter;
}
}
Expand Down
Loading