Sha256: 197f9670c260a5662d30e4c5346e411de56be9301223d50cda161c7ffa9cf849

Contents?: true

Size: 1013 Bytes

Versions: 46

Compression:

Stored size: 1013 Bytes

Contents

import React from 'react';
import { ModelForm } from '../components/ModelForm';

interface Props {
  datasets: Array<{
    id: number;
    name: string;
    rowCount: number;
  }>;
  constants: {
    tasks: Array<{
      value: string;
      label: string;
      description: string;
    }>;
    objectives: Record<string, Array<{
      value: string;
      label: string;
      description: string;
    }>>;
    metrics: Record<string, Array<{
      value: string;
      label: string;
      direction: string;
    }>>;
  };
  errors: Record<string, string[]>;
}

export default function NewModelPage({ datasets, constants, errors }: Props) {
  return (
    <div className="max-w-2xl mx-auto p-8">
      <div className="bg-white rounded-lg shadow-lg p-6">
        <h2 className="text-xl font-semibold text-gray-900 mb-6">
          Create New Model
        </h2>
        <ModelForm 
          datasets={datasets}
          constants={constants}
          errors={errors}
        />
      </div>
    </div>
  );
}

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc47 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc46 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc45 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc44 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc43 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc41 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc40 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc39 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc38 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc37 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc36 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc35 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc34 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc33 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc32 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc31 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc30 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc29 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc28 app/frontend/pages/NewModelPage.tsx
easy_ml-0.2.0.pre.rc27 app/frontend/pages/NewModelPage.tsx