Skip to content

MdpRewardAttribute

class · namespace Hazel

Marks a static method as an MDP reward component. Method signature: float Compute(MdpContext ctx, Dictionary<string, string> parameters)

Inherits Attribute

public sealed class MdpRewardAttribute : Attribute

Constructors

MdpRewardAttribute(string)

public MdpRewardAttribute(string name)

Properties

Category

public string Category { get; set; }

Description

public string Description { get; set; }

Name

public string Name { get; }

RobotTypes

public string[] RobotTypes { get; set; }

Source: Hazel/Learn/MdpAttributes.cs