Skip to content

Commit dc49044

Browse files
committed
Add License to every source file.
1 parent a58d3e8 commit dc49044

55 files changed

Lines changed: 131 additions & 85 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/conf.py

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,6 @@
1717
import sys
1818
sys.path.insert(0, os.path.abspath('../'))
1919

20-
"""
21-
sys.path.append(os.path.abspath(
22-
os.path.join(__file__, "../hbbrain")
23-
))
24-
25-
sys.path.append(os.path.abspath(
26-
os.path.join(__file__, "../hbbrain/base")
27-
))
28-
sys.path.append(os.path.abspath(
29-
os.path.join(__file__, "../hbbrain/mixed_data")
30-
))
31-
sys.path.append(os.path.abspath(
32-
os.path.join(__file__, "../hbbrain/numerical_data")
33-
))
34-
sys.path.append(os.path.abspath(
35-
os.path.join(__file__, "../hbbrain/utils")
36-
))
37-
"""
38-
3920
# on_rtd is whether we are on readthedocs.org, this line of code grabbed
4021
# from docs.readthedocs.org
4122
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
@@ -157,11 +138,7 @@ def find_source():
157138
except Exception:
158139
filename = info['module'].replace('.', '/') + '.py'
159140
import subprocess
160-
# tag = subprocess.Popen(['git', 'rev-parse', 'HEAD'],
161-
# stdout=subprocess.PIPE,
162-
# universal_newlines=True).communicate()[0][:-1]
163-
# https://github.com/runawayhorse001/statspy/blob/master/statspy/basics.py
164-
# https://github.com/runawayhorse001/SphinxGithub/blob/master/statspy/basics.py
141+
165142
return "https://github.com/UTS-CASLab/hyperbox-brain/blob/main/%s" % (filename)
166143

167144
# The following is used by sphinx.ext.linkcode to provide links to github

hbbrain/__init__.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@
66
learning algorithms in the tightly-knit world of scientific Python
77
packages (numpy, scipy, matplotlib, sklearn).
88
9-
This library aims to supplement simple and efficient solutions to machine learning
10-
problems that are accessible to everybody and reusable in various contexts:
11-
machine-learning as a flexible tool for science and engineering.
9+
This library aims to supplement simple and efficient solutions to machine
10+
learning problems that are accessible to everybody and reusable in various
11+
contexts: machine-learning as a flexible tool for science and engineering.
1212
13-
See ... for complete documentation.
13+
See https://hyperbox-brain.readthedocs.io/en/latest/index.html for complete
14+
documentation.
1415
"""
16+
# @Author: Thanh Tung KHUAT <thanhtung09t2@gmail.com>
17+
# License: GPL-3.0
18+
19+
1520
import sys
1621
import logging
1722
import os

hbbrain/_min_dependencies.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
"""All minimum dependencies for scikit-learn."""
1+
"""All minimum dependencies for hyperbox-brain"""
2+
# @Author: Thanh Tung KHUAT <thanhtung09t2@gmail.com>
3+
# License: GPL-3.0
4+
25
import platform
36
import argparse
47

hbbrain/base/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
functions for hyperbox-based classifiers.
44
"""
55
# @Author: Thanh Tung KHUAT <thanhtung09t2@gmail.com>
6-
# License: BSD 3 clause
6+
# License: GPL-3.0
77

88
from hbbrain.base.base_estimator import BaseHyperboxClassifier
99
from hbbrain.base.base_gfmm_estimator import (

hbbrain/base/base_ensemble.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Base functions and classes for ensemble models using hyperbox-based models.
33
"""
44
# @Author: Thanh Tung KHUAT <thanhtung09t2@gmail.com>
5-
# License: BSD 3 clause
5+
# License: GPL-3.0
66

77
from hbbrain.constants import UNLABELED_CLASS
88
from sklearn.utils.random import sample_without_replacement

hbbrain/base/base_estimator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Base class for all hyperbox-based estimators.
33
"""
44
# @Author: Thanh Tung KHUAT <thanhtung09t2@gmail.com>
5-
# License: BSD 3 clause
5+
# License: GPL-3.0
66

77
import numpy as np
88
import matplotlib.pyplot as plt

hbbrain/base/base_fmnn_estimator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Base classes for all fuzzy min-max neural network estimators and their improved versions.
33
"""
44
# @Author: Thanh Tung KHUAT <thanhtung09t2@gmail.com>
5-
# License: BSD 3 clause
5+
# License: GPL-3.0
66

77
import numpy as np
88
import matplotlib

hbbrain/base/base_gfmm_estimator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Base class and functions for all general fuzzy min-max neural network estimators.
33
"""
44
# @Author: Thanh Tung KHUAT <thanhtung09t2@gmail.com>
5-
# License: BSD 3 clause
5+
# License: GPL-3.0
66

77
import numpy as np
88
import random

hbbrain/constants.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
"""
22
Define constant variables for all classes in the hbbrain library
33
"""
4+
# @Author: Thanh Tung KHUAT <thanhtung09t2@gmail.com>
5+
# License: GPL-3.0
6+
47
# define constant values used in various classes
58
UNLABELED_CLASS = -1
69
CAT_MISSING_FEATURE = -1

hbbrain/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
folder.
44
"""
55
# @Author: Thanh Tung KHUAT <thanhtung09t2@gmail.com>
6-
# License: BSD 3 clause
6+
# License: GPL-3.0
77

88
import pandas as pd
99
import os

0 commit comments

Comments
 (0)