Skip to content
Snippets Groups Projects
Select Git revision
  • 67a75aa1d07883d6ea6f1c556b2e40575826434c
  • master default protected
  • Dawit
  • maike-patrick-first-pipeline
  • Jonas
  • Kamal
  • Maike
  • Patrick
  • Uni-Bremen
  • update-setup
10 results

mnist_trainer.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    mc_work.go 907 B
    // Aug 2021
    
    package mcwork
    
    import (
    	"flag"
    	"fmt"
    	"os"
    )
    
    // Have to export everything so the graphical interface can get to them
    type McPrm struct {
    	IniTmp, FnlTmp float64   // Initial and final temperatures
    	XIni           []float32 // initial x slice
    	XDlta          float64   // change x by up to +- xDlta in trial moves
    	NStep          int       // number of steps
    	NRun           int       // number of separate runs
    	fOutName       string    // where we write output to
    	fPltName       string    // where we plot to (function values)
    	xPltName       string    // where we plot x trajectories to
    	verbose        bool
    	dummy          bool // for testing. If set, do not do a run
    }
    
    var seed int64 // for random numbers, but each thread gets its own value
    
    // usage
    func usage() {
    	u := `[options] input_parameter_file`
    	fmt.Fprintf(flag.CommandLine.Output(), "usage of %s: %s\n", os.Args[0], u)
    }