Browse Source

[DOC] add docstring

tags/v0.3.2
bxdd 2 years ago
parent
commit
00156b72be
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      learnware/specification/base.py

+ 9
- 1
learnware/specification/base.py View File

@@ -6,7 +6,15 @@ from typing import Dict
class BaseStatSpecification:
"""The Statistical Specification Interface, which provide save and load method"""

def __init__(self, type):
def __init__(self, type: str):
"""initilize the type of stats specification, current the type only supports the following values:
- 'table_rkme': the RKME specification for table dataset

Parameters
----------
type : str
the type of the stats specification
"""
self.type = type

def generate_stat_spec_from_data(self, **kwargs):


Loading…
Cancel
Save