Skip to content

Instantly share code, notes, and snippets.

apiVersion: batch/v1
kind: Job
metadata:
name: {{.Trial}}
namespace: {{.NameSpace}}
spec:
template:
spec:
containers:
- name: {{.Trial}}

Comparing InAccel's API against Scikit-learn

Let's write a toy code example of Naive Bayes in Scikit-learn

from sklearn.naive_bayes import GaussianNB
from sklearn.datasets import make_classification

features, labels = make_classification(n_samples=1000, n_classes=10)

# Create classifier object