Sha256: 453da18a2a00a636e5e0974a9ffde9249501598e17abbb22d79177bd4a181ce3

Contents?: true

Size: 850 Bytes

Versions: 50

Compression:

Stored size: 850 Bytes

Contents

import React from 'react';

interface LeavePOutSplitterProps {
  p: number;
  onChange: (p: number) => void;
}

export function LeavePOutSplitter({ p, onChange }: LeavePOutSplitterProps) {
  return (
    <div className="space-y-4">
      <div>
        <label className="block text-sm font-medium text-gray-700 mb-1">
          Number of samples to leave out (P)
        </label>
        <input
          type="number"
          min={1}
          max={100}
          value={p}
          onChange={(e) => onChange(parseInt(e.target.value) || 1)}
          className="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500"
        />
        <p className="mt-1 text-sm text-gray-500">
          Each training set will have P samples removed, which form the test set.
        </p>
      </div>
    </div>
  );
}

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc30 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc29 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc28 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc27 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc26 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc25 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc24 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc23 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc22 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc21 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc20 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc19 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc18 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc17 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc16 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc15 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc14 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc13 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc12 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx
easy_ml-0.2.0.pre.rc11 app/frontend/components/dataset/splitters/LeavePOutSplitter.tsx