Artifact¶
Artifact module holds Artifact, a base class for artifacts created by creative agents.
- 
class 
creamas.core.artifact.Artifact(creator, obj, domain=<class 'int'>)[source]¶ Base class for artifacts.
A wrapper around the actual artifact object (
obj) which holds information about the creator, framings and evaluations of the artifact.- 
add_eval(agent, e, fr=None)[source]¶ Add or change agent’s evaluation of the artifact with given framing information.
- 
property 
creator¶ The name of the agent which created the artifact.
- 
property 
domain¶ Domain of the artifact. Domain must match feature’s possible domains at evaluation time, or None is returned.
- 
property 
evals¶ Dictionary of evaluations for the artifact.
Keys are the names of the evaluating agents and values are their actual evaluations.
- 
property 
framings¶ Dictionary of framings for the artifacts.
Keys are the names of the framing agents and values are their actual framings.
- 
property 
obj¶ Artifact object itself.
-