mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[tune/structure] Move AutoML board (#26012)
As part of the Tune restructuring, move the AutoML Board into the automl package.
This commit is contained in:
parent
c0cf9b8098
commit
ecf0b93146
29 changed files with 18 additions and 18 deletions
|
@ -4,13 +4,13 @@ import time
|
|||
|
||||
from threading import Thread
|
||||
|
||||
from ray.tune.automlboard.common.exception import CollectorError
|
||||
from ray.tune.automlboard.common.utils import (
|
||||
from ray.tune.automl.board.common.exception import CollectorError
|
||||
from ray.tune.automl.board.common.utils import (
|
||||
parse_json,
|
||||
parse_multiple_json,
|
||||
timestamp2date,
|
||||
)
|
||||
from ray.tune.automlboard.models.models import JobRecord, TrialRecord, ResultRecord
|
||||
from ray.tune.automl.board.models.models import JobRecord, TrialRecord, ResultRecord
|
||||
from ray.tune.result import (
|
||||
DEFAULT_RESULTS_DIR,
|
||||
JOB_META_FILE,
|
0
python/ray/tune/automl/board/frontend/__init__.py
Normal file
0
python/ray/tune/automl/board/frontend/__init__.py
Normal file
|
@ -1,6 +1,6 @@
|
|||
from django.shortcuts import HttpResponse
|
||||
|
||||
from ray.tune.automlboard.models.models import JobRecord, TrialRecord
|
||||
from ray.tune.automl.board.models.models import JobRecord, TrialRecord
|
||||
from ray.tune.trial import Trial
|
||||
|
||||
import json
|
|
@ -21,8 +21,8 @@ Including another URLconf
|
|||
from django.conf.urls import url
|
||||
from django.contrib import admin
|
||||
|
||||
import ray.tune.automlboard.frontend.view as view
|
||||
import ray.tune.automlboard.frontend.query as query
|
||||
import ray.tune.automl.board.frontend.view as view
|
||||
import ray.tune.automl.board.frontend.query as query
|
||||
|
||||
urlpatterns = [
|
||||
url(r"^admin/", admin.site.urls),
|
|
@ -1,10 +1,10 @@
|
|||
from django.shortcuts import render
|
||||
|
||||
from ray.tune.automlboard.settings import (
|
||||
from ray.tune.automl.board.settings import (
|
||||
AUTOMLBOARD_RELOAD_INTERVAL,
|
||||
AUTOMLBOARD_LOG_DIR,
|
||||
)
|
||||
from ray.tune.automlboard.models.models import JobRecord, TrialRecord, ResultRecord
|
||||
from ray.tune.automl.board.models.models import JobRecord, TrialRecord, ResultRecord
|
||||
from ray.tune.trial import Trial
|
||||
|
||||
import datetime
|
|
@ -11,5 +11,5 @@ from django.core.wsgi import get_wsgi_application
|
|||
|
||||
import os
|
||||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ray.tune.automlboard.settings")
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ray.tune.board.settings")
|
||||
application = get_wsgi_application()
|
|
@ -4,5 +4,5 @@ import os
|
|||
import sys
|
||||
|
||||
if __name__ == "__main__":
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ray.tune.automlboard.settings")
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ray.tune.board.settings")
|
||||
execute_from_command_line(sys.argv)
|
1
python/ray/tune/automl/board/models/__init__.py
Normal file
1
python/ray/tune/automl/board/models/__init__.py
Normal file
|
@ -0,0 +1 @@
|
|||
default_app_config = "ray.tune.board.models.apps.ModelConfig"
|
|
@ -4,4 +4,4 @@ from django.apps import AppConfig
|
|||
class ModelConfig(AppConfig):
|
||||
"""Model Congig for models."""
|
||||
|
||||
name = "ray.tune.automlboard.models"
|
||||
name = "ray.tune.board.models"
|
|
@ -29,7 +29,7 @@ def run_board(args):
|
|||
service.run()
|
||||
|
||||
# frontend service
|
||||
logger.info("Try to start automlboard on port %s\n" % args.port)
|
||||
logger.info("Try to start board on port %s\n" % args.port)
|
||||
command = [
|
||||
os.path.join(root_path, "manage.py"),
|
||||
"runserver",
|
||||
|
@ -71,7 +71,7 @@ def init_config(args):
|
|||
"information will be stored in automlboard.db"
|
||||
)
|
||||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ray.tune.automlboard.settings")
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ray.tune.board.settings")
|
||||
django.setup()
|
||||
command = [os.path.join(root_path, "manage.py"), "migrate", "--run-syncdb"]
|
||||
execute_from_command_line(command)
|
|
@ -33,7 +33,7 @@ INSTALLED_APPS = [
|
|||
"django.contrib.sessions",
|
||||
"django.contrib.messages",
|
||||
"django.contrib.staticfiles",
|
||||
"ray.tune.automlboard.models",
|
||||
"ray.tune.board.models",
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
@ -46,7 +46,7 @@ MIDDLEWARE = [
|
|||
"django.middleware.clickjacking.XFrameOptionsMiddleware",
|
||||
]
|
||||
|
||||
ROOT_URLCONF = "ray.tune.automlboard.frontend.urls"
|
||||
ROOT_URLCONF = "ray.tune.board.frontend.urls"
|
||||
|
||||
TEMPLATES = [
|
||||
{
|
||||
|
@ -64,7 +64,7 @@ TEMPLATES = [
|
|||
},
|
||||
]
|
||||
|
||||
WSGI_APPLICATION = "ray.tune.automlboard.frontend.wsgi.application"
|
||||
WSGI_APPLICATION = "ray.tune.board.frontend.wsgi.application"
|
||||
|
||||
DB_ENGINE_NAME_MAP = {
|
||||
"mysql": "django.db.backends.mysql",
|
||||
|
@ -137,7 +137,7 @@ USE_TZ = False
|
|||
STATIC_URL = "/static/"
|
||||
STATICFILES_DIRS = (os.path.join(BASE_DIR, "static").replace("\\", "/"),)
|
||||
|
||||
# automlboard settings
|
||||
# board settings
|
||||
AUTOMLBOARD_LOG_DIR = os.environ.get("AUTOMLBOARD_LOGDIR", None)
|
||||
AUTOMLBOARD_RELOAD_INTERVAL = os.environ.get("AUTOMLBOARD_RELOAD_INTERVAL", None)
|
||||
AUTOMLBOARD_LOG_LEVEL = os.environ.get("AUTOMLBOARD_LOGLEVEL", None)
|
|
@ -1 +0,0 @@
|
|||
default_app_config = "ray.tune.automlboard.models.apps.ModelConfig"
|
Loading…
Add table
Reference in a new issue