wizard

package
v0.0.0-...-775080a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Demographics

func Demographics(db edulab.Database, experiment edulab.Experiment) error

func ImportYAML

func ImportYAML(db edulab.Database, dirPath string) error

ImportYAML loads and imports all YAML experiment files from a directory.

Types

type Assessment

type Assessment struct {
	PublicID  string                `yaml:"public_id"`
	Type      edulab.AssessmentType `yaml:"type"`
	Questions []Question            `yaml:"questions"`
}

type AssessmentConfig

type AssessmentConfig struct {
	CorrectProbabilities []float64 `yaml:"correct_probabilities"` // Probability of correct answers per cohort for this assessment
	BiasFactor           float64   `yaml:"bias_factor"`           // Likelihood of selecting a common incorrect answer when wrong
}

type BootstrapConfig

type BootstrapConfig struct {
	Participants      int                `yaml:"participants"` // Total number of participants to create
	AssessmentConfigs []AssessmentConfig `yaml:"assessments"`  // Configuration for each assessment
	DemographicConfig DemographicConfig  `yaml:"demographics"` // Configuration for demographics
}

type Choice

type Choice struct {
	Text      string `yaml:"text"`
	IsCorrect bool   `yaml:"is_correct"`
}

type Cohort

type Cohort struct {
	PublicID    string `yaml:"public_id"`
	Name        string `yaml:"name"`
	Description string `yaml:"description"`
}

type DemographicConfig

type DemographicConfig struct {
	Probabilities      []float64 `yaml:"probabilities"`       // Probabilities for each option in order
	OutlierProbability float64   `yaml:"outlier_probability"` // Probability of overriding with a random outlier
}

type Experiment

type Experiment struct {
	PublicID        string          `yaml:"public_id"`
	Name            string          `yaml:"name"`
	Description     string          `yaml:"description"`
	Assessments     []Assessment    `yaml:"assessments"`
	Cohorts         []Cohort        `yaml:"cohorts"`
	BootstrapConfig BootstrapConfig `yaml:"bootstrap_config,omitempty"`
	ForceDelete     bool            `yaml:"force_delete,omitempty"`
}

type Question

type Question struct {
	Text    string           `yaml:"text"`
	Type    edulab.InputType `yaml:"type"`
	Choices []Choice         `yaml:"choices"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL