sm: Access the student model (Pnet) associated with a studnet...

smR Documentation

Access the student model (Pnet) associated with a studnet record

Description

A characteristic of the EABN model is that each code StudentRecord is associated with a student model–a Pnet which tracks our knowledge about the student's knowledge skills and abilities. The function sm accesses the net.

Usage

sm(x)
sm(x) <- value

Arguments

x

An object of class StudentRecord whose student model will be accessed.

value

A Pnet object which will be the new student model.

Value

The function sm returns an object which implements the Pnet protocol, or none is the student model has not been generated.

The setter version returns the student record.

Author(s)

Russell Almond

See Also

fetchSM, unpackSM, setupDefaultSR

Examples



library(PNetica)

##Start with manifest
sess <- RNetica::NeticaSession()
RNetica::startSession(sess)

## BNWarehouse is the PNetica Net Warehouse.
## This provides an example network manifest.
config.dir <- file.path(library(help="Peanut")$path, "auxdata")
netman1 <- read.csv(file.path(config.dir,"Mini-PP-Nets.csv"),
                    row.names=1, stringsAsFactors=FALSE)
net.dir <- file.path(library(help="PNetica")$path, "testnets")
Nethouse <- PNetica::BNWarehouse(manifest=netman1,session=sess,key="Name",
                       address=net.dir)

dsr <- StudentRecord("*DEFAULT*",app="ecd://epls.coe.fsu.edu/P4Test",
                     context="*Baseline*")
sm(dsr) <- WarehouseSupply(Nethouse,"miniPP_CM")
PnetCompile(sm(dsr))



ralmond/EABN documentation built on Aug. 30, 2023, 12:52 p.m.