# Reference

## Assignment

class `ml4sec.``Assignment`(file_benign, file_unknown)

`Assignment.``__init__`(file_benign, file_unknown)

  ML4sec assignment. Acts as backend for the ML4sec assignment. We use this to abstract away some of the functionality to make the assignment less confusing for students.

  Parameters

    - file_benign (string) – Path from which to load benign.csv.

    - file_unknown (string) – Path from which to load unknown.csv.

Note

We split methods provided for this assignment over different files that are imported by the `Assignment` class. Please view the separate files for the source code of all functions.

The assignment contains methods for each subsection of the assignment:

- Load data
- Extract features
- Scale features
  - Testing
  - Visualisation
- Kernel functions
  - Plotting
- Split data
  - Test
- Metrics
  - True/False Positive/Negatives
  - Test
  - Metric implementations
  - Results
- Submit