Skip to content

Commit

Permalink
Btree match
Browse files Browse the repository at this point in the history
  • Loading branch information
miaohancheng committed Dec 18, 2024
1 parent 922546e commit a50452d
Show file tree
Hide file tree
Showing 13 changed files with 147 additions and 107 deletions.
4 changes: 2 additions & 2 deletions Example.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
# for reproducibility
np.random.seed(20240919)

m.fit_scores(balance=True, nmodels=10,n_jobs=3,model_type='knn')
# m.fit_scores(balance=True, nmodels=10,n_jobs=3,model_type='knn')
# m.fit_scores(balance=True, nmodels=10, n_jobs=3, model_type='tree', max_iter=100)
# m.fit_scores(balance=True, nmodels=10,n_jobs=3,model_type='linear', max_iter=200)
m.fit_scores(balance=True, nmodels=10,n_jobs=3,model_type='linear', max_iter=200)


m.predict_scores()
Expand Down
Binary file modified Example_files/Example_14_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Example_files/Example_15_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Example_files/Example_16_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Example_files/Example_17_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Example_files/Example_19_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Example_files/Example_Chinese_01_0.png
Binary file not shown.
Binary file removed Example_files/Example_Chinese_02_0.png
Binary file not shown.
2 changes: 1 addition & 1 deletion build/lib/pysmatch/Matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from sklearn.preprocessing import StandardScaler

from pysmatch import *
import pysmatch.functions as uf
import pysmatch.utils as uf
from catboost import CatBoostClassifier
from multiprocessing.pool import ThreadPool as Pool
import multiprocessing as mp
Expand Down
2 changes: 1 addition & 1 deletion build/lib/pysmatch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from collections import Counter
from itertools import chain
import sys; sys.path.append(sys.argv[0])
import pysmatch.functions as uf
import pysmatch.utils as uf
import statsmodels.api as sm
import patsy
import seaborn as sns
Expand Down
244 changes: 142 additions & 102 deletions pysmatch/Matcher.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pysmatch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from collections import Counter
from itertools import chain
import sys; sys.path.append(sys.argv[0])
import pysmatch.functions as uf
import pysmatch.utils as uf
import statsmodels.api as sm
import patsy
import seaborn as sns
Expand Down
File renamed without changes.

0 comments on commit a50452d

Please sign in to comment.