UNPKG

@ignitionai/backend-tfjs

Version:

TensorFlow.js backend for IgnitionAI - browser-based reinforcement learning framework

17 lines (16 loc) 479 B
import { DQNConfig } from "../types"; interface TrainAgentOptions { config: DQNConfig; maxSteps?: number; checkpointEvery?: number; repoId?: string; token?: string; onStep?: (step: number, reward: number, action: number, state: number[]) => void; getEnvStep: () => { state: number[]; correctAction: number; nextState: number[]; }; } export declare function trainAgent(options: TrainAgentOptions): Promise<void>; export {};