CCPEM Pipeliner
Guide

Other and Doppio Jobs

Third-party tool integrations, utility and import jobs, and Doppio pick editing


Overview

This page covers the job types registered under jobs/other and jobs/doppio in ccpem-pipeliner: third-party tool integrations (crYOLO, Cinderella, IceBreaker, CryoEF, REPIC, TEMPy-ReFF, EMDA, EMDB Validation Analysis), utility jobs (random sampling, class selection, external program runner, external workflow import, averaged power spectrum), fetch jobs (PDB, EMDB, AlphaFold, sequence), deposition jobs (EMPIAR, OneDep), sequence/model utilities (findMySequence, checkMySequence, DoubleHelix), Moorhen model editing, and the Doppio in-browser pick editor. Understanding these job types lets you integrate third-party tools into automated pipelines, prepare depositions programmatically, and extend workflows beyond the core RELION processing steps.


Usage

All jobs on this page are registered entry-point plugins and are treated identically to built-in jobs at the API level. You discover them with pipeliner --available_jobs, inspect them with pipeliner --job_info <process_name>, generate parameter files with pipeliner --default_runjob <process_name>, and run them with pipeliner --run_job <file>.

The table below lists every registered job on this page with its exact process name, output directory, and key external program(s).

Process nameClassOUT_DIRExternal program(s)
cryolo.autopickCrYOLOAutopickSPAAutoPickcryolo_gui.py, cryolo_predict.py
cryolo.autopick.tomoCrYOLOAutopickTomoAutoPickcryolo_gui.py, cryolo_predict.py
cinderella.select.class_averagesCinderellaPredictCinderellasp_cinderella_predict.py
cinderella.select.class_averages.trainCinderellaTrainCinderellasp_cinderella_train.py
icebreaker.micrograph_analysis.micrographsIceBreakerGroupMicsIceBreakerib_job
icebreaker.micrograph_analysis.particlesIceBreakerGroupPartsIceBreakerib_group
icebreaker.micrograph_analysis.enhancecontrastIceBreakerFlattenIceBreakerib_job
icebreaker.micrograph_analysis.summaryIceBreakerFiveFigureSummaryIceBreakerib_5fig
cryoef.map_analysisCryoEFCryoEFcryoEF
repic.autopick.consensusREPICJobREPICrepic
emda.mask_creation.half_mapsEmdaMapMaskEmdaMapMaskemda2
emdb_validation_analysis.map_model_validationMapModelValidateEMDB_validationva
checkmysequence.atomic_model_validationModelSequenceValidateCheckMySequencecheckmysequence
findmysequence.atomic_model_utilities.assign_sequenceModelSequenceAssignFindMySequencefindmysequence
doublehelix.atomic_model_utilities.assign_sequenceModelSequenceAssignNADoubleHelixdoubleHelix
tempy_reff.atomic_model_refine.flexible_fitFlexfitRefineTEMPyReFF-FlexFittempy-reff, gemmi, ribfind
tempy_reff.atomic_model_refine.gmmGMMRefineTEMPyReFF-GMMtempy-reff, gemmi
pipeliner.select.autoselect3dAutoSelect3DSelect(none)
pipeliner.select.classesPipelinerClassSelectSelectrelion_image_handler
pipeliner.select.random_sampleRandomSampleStarfileSelect(none)
pipeliner.image_analysis.average_particle_psAvgPartPSImageAnalysisrelion_display, relion_star_handler, relion_image_handler
pipeliner.run_external_programPipelinerExternalExternal(user-defined)
pipeliner.workflow.import_externalExternalWorkflowImportJobImportcp
pipeliner.fetch.pdbFetchPdbFetchgzip
pipeliner.fetch.emdbFetchEmdbFetchgzip
pipeliner.fetch.alphafoldFetchAlphaFoldFetchgzip
pipeliner.fetch.sequenceFetchFastaFetch(none)
pipeliner.deposition.onedepOneDepDepositionJobDeposition(none, uses onedep-lib)
pipeliner.deposition.empiarEmpiarDepositionJobDeposition(none — loads with is_available=False)
moorhen.atomic_model_refineMoorhenJobMoorhen(none — browser-based)
doppio.manualpick.editDoppioEditPicksManualPick(none — internal Doppio use)

Availability checks

Before scheduling any third-party job, verify the required executable is on PATH:

pipeliner --check_jobs cryolo

If an executable is missing, the job loads normally but job.jobinfo.is_available is False and job.jobinfo.unavailable_message explains which executable was not found. You can still schedule and run the job via the API or CLI, but it will fail at execution time.

Two jobs are permanently unavailable through the job-type API:

  • pipeliner.deposition.empiar — loads with is_available=False and alternative_unavailable_reason set to ' EMPIAR is updating their deposition system …'. Use the CLI route pipeliner --empiar_deposition <terminal_job> or PipelinerProject.prepare_project_empiar_deposition() instead.
  • doppio.manualpick.edit — loads with alternative_unavailable_reason set; it is used internally by Doppio and is not intended to be run directly.

Continuation support

The following jobs on this page support continuation (can_continue=True): cryolo.autopick, cryolo.autopick.tomo, pipeliner.image_analysis.average_particle_ps, pipeliner.deposition.onedep, moorhen.atomic_model_refine. All others default to can_continue=False; re-run them as new jobs to redo processing.


Examples

1 · crYOLO SPA autopicking via the Python API

Requires cryolo_gui.py and cryolo_predict.py on PATH.

from pipeliner.api.manage_project import PipelinerProject

proj = PipelinerProject()
params = {
    '_rlnJobTypeLabel': 'cryolo.autopick',
    'input_file': 'CtfFind/job003/micrographs_ctf.star',
    'model_path': '/data/cryolo_gm_040_0.h5',
    'box_size': '128',
    'confidence_threshold': '0.3',
    'use_JANNI_denoise': 'No',
    'gpus': '0',
}
job = proj.run_job(params, run_in_foreground=True)
print(job.output_dir)  # AutoPick/job004/

2 · crYOLO autopick via a run.job file

# Generate the template
pipeliner --default_runjob cryolo.autopick
# → writes cryolo_autopick_run.job

# Edit two lines in the file (labels must match exactly):
# Input micrographs file: == CtfFind/job003/micrographs_ctf.star
# CrYOLO model: == /data/cryolo_gm_040_0.h5

pipeliner --run_job cryolo_autopick_run.job

3 · IceBreaker micrograph grouping then particle assignment

from pipeliner.api.manage_project import PipelinerProject

proj = PipelinerProject()

# Step 1: group micrographs by ice thickness
group_params = {
    '_rlnJobTypeLabel': 'icebreaker.micrograph_analysis.micrographs',
    'in_mics': 'MotionCorr/job002/corrected_micrographs.star',
    'nr_threads': '8',
}
group_job = proj.run_job(group_params, run_in_foreground=True)

# Step 2: assign ice values to particles
parts_params = {
    '_rlnJobTypeLabel': 'icebreaker.micrograph_analysis.particles',
    'in_mics': group_job.output_dir + 'grouped_micrographs.star',
    'in_parts': 'Extract/job005/particles.star',
    'nr_threads': '8',
}
parts_job = proj.run_job(parts_params, run_in_foreground=True)

4 · REPIC consensus picking from two pickers

from pipeliner.api.manage_project import PipelinerProject

proj = PipelinerProject()
params = {
    '_rlnJobTypeLabel': 'repic.autopick.consensus',
    'input_files': (
        'AutoPick/job004/autopick.star'
        ':::'
        'AutoPick/job006/autopick.star'
    ),
    'box_size': '180',
}
job = proj.run_job(params, run_in_foreground=True)
# Output: REPIC/jobNNN/consensus_picks.star

Note: input_files is a MultiInputNodeJobOption; multiple values are joined with ::: in the parameters dict string.


5 · Automated 3D class selection

from pipeliner.api.manage_project import PipelinerProject

proj = PipelinerProject()
params = {
    '_rlnJobTypeLabel': 'pipeliner.select.autoselect3d',
    'fn_parts': 'Class3D/job008/run_it025_data.star',
}
job = proj.run_job(params, run_in_foreground=True)
# Outputs: Select/jobNNN/selected_particles.star
#          Select/jobNNN/selected_class.mrc

6 · Pipeliner class selection (2D or 3D)

from pipeliner.api.manage_project import PipelinerProject

proj = PipelinerProject()
params = {
    '_rlnJobTypeLabel': 'pipeliner.select.classes',
    'fn_optimiser': 'Class2D/job007/run_it020_optimiser.star',
    'classes': '1,3,5',
    'do_recenter': 'Yes',
}
job = proj.run_job(params, run_in_foreground=True)

7 · OneDep deposition job (prepare then submit)

The pipeliner.deposition.onedep job has can_continue=True. Run it once to prepare files, then continue it with submit_to_onedep=Yes to create the deposition.

from pipeliner.api.manage_project import PipelinerProject
from pipeliner.api.api_utils import write_default_jobstar, edit_jobstar

proj = PipelinerProject()

# Prepare files (dry run)
params = {
    '_rlnJobTypeLabel': 'pipeliner.deposition.onedep',
    'main_map': 'PostProcess/job012/postprocess.mrc',
    'atomic_model': 'Servalcat/job015/refined.mmcif',
    'halfmaps': (
        'Refine3D/job011/run_half1_class001_unfil.mrc'
        ':::'
        'Refine3D/job011/run_half2_class001_unfil.mrc'
    ),
    'submit_to_onedep': 'No',
    'onedep_dry_run': 'No',
}
job = proj.run_job(params, run_in_foreground=True)

# Continue to submit (edit continue_job.star first)
# continue_job.star uses STAR job-file format keyed by option name
# e.g. set submit_to_onedep to Yes (submission also requires entry_image,
# onedep_email, onedep_users, onedep_country and onedep_map_contour), then:
proj.continue_job(job.output_dir)

8 · EMPIAR deposition via CLI

# Include all data types (movies, mics, particles, corrected particles)
pipeliner --empiar_deposition Refine3D/job011/

# Include only movies and micrographs
pipeliner --empiar_deposition Refine3D/job011/ --empiar_movies --empiar_mics

Output is written to EMPIAR/<datetime>_EMPIAR.json.


9 · Fetch a PDB model and FASTA sequence

from pipeliner.api.manage_project import PipelinerProject

proj = PipelinerProject()
params = {
    '_rlnJobTypeLabel': 'pipeliner.fetch.pdb',
    'db_id': '7A4M',
    'format': 'mmCIF',
    'get_fasta': 'Yes',
}
job = proj.run_job(params, run_in_foreground=True)

10 · Moorhen in-browser model refinement (continuation-capable)

from pipeliner.api.manage_project import PipelinerProject

proj = PipelinerProject()
params = {
    '_rlnJobTypeLabel': 'moorhen.atomic_model_refine',
    'input_maps': 'PostProcess/job012/postprocess.mrc',
    'input_models': 'Servalcat/job015/refined.mmcif',
    'moorhen_session_file': 'moorhensession.json',
}
job = proj.run_job(params, run_in_foreground=False)
# Open Doppio to interact with the running Moorhen session

11 · Run an external program through the pipeliner

from pipeliner.api.manage_project import PipelinerProject

proj = PipelinerProject()
params = {
    '_rlnJobTypeLabel': 'pipeliner.run_external_program',
    'in_particles': 'Extract/job005/particles.star',
    'commands': 'my_custom_filter --i XXXparticles_1XXX --o filtered.star',
    'do_outputs': 'Yes',
    'fn_output': 'filtered.star',
    'output_nodetype': 'ParticleGroupMetadata',
}
job = proj.run_job(params, run_in_foreground=True)

In the command string, XXXparticles_1XXX is replaced with the path of the first entry in in_particles, made relative to the job directory, because the commands run from inside External/jobNNN/ (so filtered.star is written there).


12 · Import external workflow results

Create a JSON descriptor file then schedule the import job:

import json
from pipeliner.api.manage_project import PipelinerProject

# Write the descriptor
descriptor = {
    'InputNodes': {
        'Extract/job005/particles.star': ['ParticleGroupMetadata', ['relion']]
    },
    'OutputNodes': {
        '/data/external_output/filtered.star': [
            'ParticleGroupMetadata', ['relion', 'filtered']
        ]
    },
    'ProcessingDescription': {
        'Step 1': 'Applied custom filter with external tool'
    }
}
with open('external_desc.json', 'w') as f:
    json.dump(descriptor, f)

proj = PipelinerProject()
params = {
    '_rlnJobTypeLabel': 'pipeliner.workflow.import_external',
    'external_import_data': 'external_desc.json',
}
job = proj.run_job(params, run_in_foreground=True)

Job reference table

PROCESS_NAMEClassOUT_DIRExternal program(s)can_continue
cryolo.autopickCrYOLOAutopickSPAAutoPick/cryolo_gui.py, cryolo_predict.pyYes
cryolo.autopick.tomoCrYOLOAutopickTomoAutoPick/cryolo_gui.py, cryolo_predict.pyYes
cinderella.select.class_averagesCinderellaPredictCinderella/sp_cinderella_predict.pyNo
cinderella.select.class_averages.trainCinderellaTrainCinderella/sp_cinderella_train.pyNo
icebreaker.micrograph_analysis.micrographsIceBreakerGroupMicsIceBreaker/ib_jobNo
icebreaker.micrograph_analysis.particlesIceBreakerGroupPartsIceBreaker/ib_groupNo
icebreaker.micrograph_analysis.enhancecontrastIceBreakerFlattenIceBreaker/ib_jobNo
icebreaker.micrograph_analysis.summaryIceBreakerFiveFigureSummaryIceBreaker/ib_5figNo
repic.autopick.consensusREPICJobREPIC/repicNo
cryoef.map_analysisCryoEFCryoEF/cryoEFNo
emda.mask_creation.half_mapsEmdaMapMaskEmdaMapMask/emda2No
pipeliner.select.autoselect3dAutoSelect3DSelect/(none)No
pipeliner.select.classesPipelinerClassSelectSelect/relion_image_handlerNo
pipeliner.select.random_sampleRandomSampleStarfileSelect/(none)No
pipeliner.image_analysis.average_particle_psAvgPartPSImageAnalysis/relion_display, relion_star_handler, relion_image_handlerYes
pipeliner.run_external_programPipelinerExternalExternal/(varies)No
pipeliner.workflow.import_externalExternalWorkflowImportJobImport/cpNo
pipeliner.fetch.pdbFetchPdbFetch/gzipNo
pipeliner.fetch.emdbFetchEmdbFetch/gzipNo
pipeliner.fetch.alphafoldFetchAlphaFoldFetch/gzipNo
pipeliner.fetch.sequenceFetchFastaFetch/(none)No
pipeliner.deposition.empiarEmpiarDepositionJobDeposition/(none — unavailable)No
pipeliner.deposition.onedepOneDepDepositionJobDeposition/(none)Yes
moorhen.atomic_model_refineMoorhenJobMoorhen/(none)Yes
findmysequence.atomic_model_utilities.assign_sequenceModelSequenceAssignFindMySequence/findmysequenceNo
checkmysequence.atomic_model_validationModelSequenceValidateCheckMySequence/checkmysequenceNo
doublehelix.atomic_model_utilities.assign_sequenceModelSequenceAssignNADoubleHelix/doubleHelixNo
emdb_validation_analysis.map_model_validationMapModelValidateEMDB_validation/vaNo
tempy_reff.atomic_model_refine.flexible_fitFlexfitRefineTEMPyReFF-FlexFit/tempy-reff, gemmi, ribfindNo
tempy_reff.atomic_model_refine.gmmGMMRefineTEMPyReFF-GMM/tempy-reff, gemmiNo
doppio.manualpick.editDoppioEditPicksManualPick/(none — Doppio internal)No

Job option keys by job type

cryolo.autopick / cryolo.autopick.tomo (CrYOLOAutopickBase subclasses)

KeyLabelNotes
input_fileInput micrographs file: (Input tomograms file: for cryolo.autopick.tomo)Path to micrographs (or tomograms) STAR file
model_pathCrYOLO model:Path to .h5 model file
config_fileCrYOLO config:Optional .json config
box_sizeBox size:Integer, pixels
confidence_thresholdConfidence thresholdFloat 0–1
use_JANNI_denoiseUse JANNI denoising?Boolean
JANNI_model_pathPath to JANNI noise model:Active only if use_JANNI_denoise=Yes
gpusWhich GPUs to use:Comma-separated GPU IDs
nr_threadsNumber of CPUsInteger

There is no do_gpu option on crYOLO jobs (do_gpu belongs to CinderellaJob).

icebreaker.micrograph_analysis.micrographs / .particles / .enhancecontrast / .summary

KeyLabelNotes
in_micsInput micrographs STAR file:All four IceBreaker jobs
in_partsInput particles STAR file:particles job only

repic.autopick.consensus

KeyLabelNotes
input_filesInput AutoPick filesMultiInputNodeJobOption; values separated by :::
box_sizeBox sizeInteger

pipeliner.select.autoselect3d

KeyLabelNotes
fn_partsInput 3D classification particles file*_data.star from a Class3D job

pipeliner.select.classes

KeyLabelNotes
fn_optimiserClassification optimiser file*_optimiser.star from Class2D or Class3D
classesClasses to selectComma-separated integers starting at 1
do_recenterRecenter 2D class average imagesBoolean; ignored for 3D classes

pipeliner.select.random_sample

Exactly one of the following input options must be filled; the rest are deactivated:

KeyLabel
fn_movsSample from movies file
fn_micsOR: Sample from micrographs file
fn_partsOR: Sample from particles file
fn_coord_filesOR: Sample coordinate files from a list
fn_coordsOR: Sample points from a coordinates file
n_samplesNumber of samples:

cryoef.map_analysis

KeyLabelNotes
input_fileInput file name:Particles STAR or angles .txt
b_factorB-factor:Optional float
particle_diameter_angParticle diameter:Optional float, Å
box_size_pxBox size:Optional integer
resolutionResolution:Optional float, Å
symmetrySymmetry:String, e.g. C1
angular_accAngular accuracy:Optional float
max_tilt_angleMaximum tilt angle:Optional float

emda.mask_creation.half_maps

KeyLabel
half_map1Input half map1
half_map2Input half map2

Output: emda_halfmapmask_1.mrc (NODE_MASK3D)

pipeliner.image_analysis.average_particle_ps

KeyLabelNotes
particle_starAligned particle STAR file:Required; aligned 2D/3D particles
selected_classSelect particles from class:Integer ≥ 1
do_padPad the images for processing?Boolean
do_pickingManually identify points of interest?Boolean; in_continue=True
display_scaleScale for display imageFloat; active when do_picking=Yes
display_sigma_contrastDisplay sigma contrastFloat

pipeliner.run_external_program

KeyLabelNotes
in_moviesInput movies STAR file:MultiInputNodeJobOption
in_micrographsInput micrographs STAR file:MultiInputNodeJobOption
in_particlesInput particles STAR file:MultiInputNodeJobOption
in_mapInput 3D density map:MultiInputNodeJobOption
in_maskInput 3D mask:MultiInputNodeJobOption
in_otherInput other file types:MultiExternalFileJobOption
commandsCommands to be executedMultiStringJobOption; use XXX<type>_<N>XXX placeholders (e.g. XXXparticles_1XXX)
do_outputsCreate output node(s)?Boolean
fn_outputOutput file(s) name(s) (optional):MultiStringJobOption
output_nodetypeOutput node type:Choice from all node top-level types
alt_nodetypeOR: Create a new node type:Active only when output_nodetype is new-node sentinel
output_kwdsOutput node keywords:MultiStringJobOption
onedep_metadata_fileAssociate a metadata file with the imported file(s):Optional

pipeliner.workflow.import_external

KeyLabel
external_import_dataExternal import json data file:

pipeliner.fetch.pdb

KeyLabelNotes
db_idPDB ID number4-character PDB ID
formatDownload format:PDB or mmCIF
get_fastaAlso get FASTA sequence file?Boolean

pipeliner.deposition.empiar (EmpiarDepositionJob)

This job loads with is_available=False and alternative_unavailable_reason set because EMPIAR is updating their deposition system. Use the CLI route (pipeliner --empiar_deposition <terminal_job>) or PipelinerProject.prepare_project_empiar_deposition() instead.

Key options (for reference):

KeyLabel
input_jobJob to create deposition from:
dep_raw_micsDeposit raw micrographs (if available)?
dep_corr_micsDeposit corrected micrographs (if available)?
dep_partsDeposit particles (if available)?
dep_corr_partsDeposit polished particles (if available)?
entry_titleEntry title
entry_authorsEntry authors (Surname, Initials, optional:ORCID ID )

pipeliner.deposition.onedep (OneDepDepositionJob, can_continue=True)

KeyLabelNotes
main_mapMain mapRequired for submission
atomic_modelAtomic modelmmCIF format
entry_imageEntry image for public displayPNG; required for submission
halfmapsHalf mapsMultiInputNodeJobOption
submit_to_onedepStart a OneDep deposition?Boolean; used on continuation
onedep_dry_runRun checks without creating/uploading deposition?Boolean

OneDep credentials must be configured first with pipeliner.setup_onedep_credentials and are stored in ~/.config/ccpem/pipeliner/onedep/config.toml on Linux (or ~/Library/Application Support/ccpem/pipeliner/onedep/config.toml on macOS), overridable via PIPELINER_ONEDEP_CONFIG_PATH.

moorhen.atomic_model_refine (MoorhenJob, can_continue=True)

KeyLabelNotes
input_mapsInput mapsMultiInputNodeJobOption
input_modelsInput modelsMultiInputNodeJobOption
moorhen_session_fileMoorhen session fileDefault moorhensession.json

findmysequence.atomic_model_utilities.assign_sequence

KeyLabelNotes
input_modelInput model.cif, .pdb, or .ent
input_mapInput map.mrc, .ccp4, or .map
chain_selectionChain selectione.g. A.10:100
assign_sequenceAssign given sequence?Boolean
input_sequenceInput sequenceRequired if assign_sequence=Yes
use_uniprot_idDownload proteome from UniprotBoolean
input_sequence_dbInput search databaseFASTA; required if not assigning and use_uniprot_id=No
input_uniprot_idUniprot ID of a target proteomee.g. UP000005206

checkmysequence.atomic_model_validation

KeyLabel
input_modelInput model
input_mapInput map
input_sequenceInput sample sequence

doublehelix.atomic_model_utilities.assign_sequence

KeyLabelNotes
input_modelInput modelMain-chain model (side-chains ignored)
input_mapInput mapNot needed when restraints=Yes
chain_selectionChain selectione.g. A.10:100
assign_sequenceAssign given sequence?Boolean
heteromultimer_modeTarget is a hetero-multimerBoolean
dna_modeTarget molecule is a DNABoolean
hmm_modeIgnore secondary structure in sequence searchBoolean
restraintsGenerate refinement restraintsBoolean
input_sequenceInput sequenceRequired when assigning sequence
input_sequence_dbInput search databaseRequired when not assigning

tempy_reff.atomic_model_refine.flexible_fit

Requires tempy-reff, gemmi, and ribfind (from RIBFIND2); missing ribfind causes is_available=False.

KeyLabelNotes
input_modelInput model.cif or .pdb
input_mapInput map.mrc or .map
resolutionResolutionFloat, Å
ribfind_output_filesRIBFIND2 metadata (json)Optional; RIBFIND2 run automatically if absent
rna_fittingIs it an RNA structure?Boolean
force_densityWeight of map fitFloat, default 100
convergence_typeConvergence methodvariance or patience
use_gpuUse GPU?Boolean
add_final_refinementAdd a final refinement step?Boolean

tempy_reff.atomic_model_refine.gmm

Requires tempy-reff and gemmi; uses use_gpu (not do_gpu).

KeyLabel
input_modelInput model
input_mapInput map
resolutionResolution
force_gmmWeight of GMM fit
convergence_typeConvergence method
use_gpuUse GPU?

Output: gmm_out/final.cif (NODE_ATOMCOORDS)

doppio.manualpick.edit (DoppioEditPicks)

This job is used internally by the Doppio GUI and sets alternative_unavailable_reason to indicate it should not be run directly. It reads coordinate edits made in the browser and writes ManualPick/jobNNN/picked_particles.star.

KeyLabelNotes
coords_filePicked coordinates file (from Doppio)JSON format written by Doppio
data_typePicked images data typeNode type choice
autopick_filePrevious autopick fileRELION autopick.star

Cinderella 2D class selection

cinderella.select.class_averages — predict good/bad classes:

KeyLabelNotes
input_classesInput Class averages to be sorted:.mrcs or .hdf
trained_modelTrained model:.h5 model file
weightConfidence cutoffFloat 0–1; default 0.7
do_gpuUse GPU?Boolean (unique to Cinderella)
gpuWhich GPU to use?String GPU ID

cinderella.select.class_averages.train — train a custom model:

KeyLabel
input_sizeResize input images to:
batch_sizeBatch Size
good_pathDirectory containing 'good' class averages:
bad_pathDirectory containing 'bad' class averages:
nb_epochMaxinum epochs to train
nb_early_stopStop if no improvement after: