33 lines
755 B
Python
33 lines
755 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: UTF-8 -*-
|
|
###########################################################################
|
|
# Copyright © 1998 - 2026 Tencent. All Rights Reserved.
|
|
###########################################################################
|
|
"""
|
|
Author: Tencent AI Arena Authors
|
|
|
|
Robot Vacuum DIY algorithm implementation.
|
|
清扫大作战 DIY 算法实现。
|
|
"""
|
|
|
|
|
|
class Algorithm:
|
|
"""DIY algorithm class.
|
|
|
|
DIY 算法类。
|
|
"""
|
|
|
|
def __init__(self, model, optimizer, scheduler, device=None, logger=None, monitor=None):
|
|
"""Initialize the algorithm.
|
|
|
|
初始化算法。
|
|
"""
|
|
pass
|
|
|
|
def learn(self, list_sample_data):
|
|
"""Training entry.
|
|
|
|
训练入口。
|
|
"""
|
|
pass
|