Comments (4)
Can you elaborate a bit more on your use-case? Do you want to search jointly for the right algorithm and hyperparameters?
from syne-tune.
the use-case is maybe there is one dataset, and I want to parallel find 5 algorithms hyperparameters, these 5 algorithms is independent each other. It means I start 5 ray actors for 5 algorithms to find hyperparameters. Before when I use ray.tune to do it. 5 ray.tune will mix the hyperparam each other.
from syne-tune.
What you could do is to define one categorical hyperparameter that defines the algorithm. Then you define all hyperparameters for your algorithms. For example, it could look like this:
config_space = {
"algorithm_type": choice(['rf', 'xgb']),
"learning_rate_xgb": loguniform(1e-6, 1e-1),
"n_estimators_rf": randint(10, 500),
"min_samples_split_rf": randint((1, 50))
}
Now, in your train function, you first check which algorithm to use and then pass it the corresponding hyperparameters. For example:
if algorithm_type == 'xgb':
model = xgboost.XGBClassifier(learning_rate=learning_rate_xgb)
elif algorithm_type == 'rf':
model = RandomForestClassifier(min_samples_split=min_samples_split_rf, n_estimators=n_estimators_rf)
This might be not the most efficient way, but as long as you use a random-search based method such as ASHA it should work.
from syne-tune.
Feel free to reopen if there are further questions
from syne-tune.
Related Issues (20)
- RemoteLauncher corrupts requirements.txt when not ending with newline HOT 5
- Conditional/Inactive hyperparameters HOT 6
- Troubles with maximising using MORandomScalarizationBayesOpt HOT 4
- Run BOHB/SyncBOHB using lcbench HOT 2
- Open `MultiObjectiveMultiSurrogateSearcher` to additional arguments HOT 2
- Simple example for learning curve plotting HOT 7
- Surprising results of trial values over time HOT 3
- Conditional sampling in configuration space HOT 4
- Using sigterm / catching sigterm to enable checkpointing HOT 10
- Convenience transformation for config spaces HOT 8
- Docs for continuing aborted runs HOT 12
- Hard to find default configurations for schedulers HOT 3
- Difficulties setting rungs / stopping HOT 20
- GP not robust to NaN metric HOT 2
- Direct support for time as a resource? HOT 7
- Acquisition functions in Bayesian optimization HOT 1
- Update Ray dependencies, as dependabot flags them as security vulnerabilities
- Set custom GPU Ids for LocalBackend HOT 2
- [Question] Multiple runs for same parameter values HOT 5
- ModuleNotFoundError: No module named 'sagemaker.interactive_apps' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syne-tune.