Skip to content

Commit 411343b

Browse files
authored
Merge pull request #1200 from mindsdb/staging
Release 23.12.4.0
2 parents a73a547 + 5409551 commit 411343b

File tree

7 files changed

+11
-9
lines changed

7 files changed

+11
-9
lines changed

.github/workflows/ligthtwood.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
branches:
77
- stable
88
- staging
9+
release:
10+
types: [ published ]
911

1012

1113
jobs:
@@ -46,7 +48,7 @@ jobs:
4648
deploy:
4749
runs-on: ubuntu-latest
4850
needs: test
49-
if: github.ref == 'refs/heads/stable'
51+
if: github.ref == 'refs/heads/stable' || github.event_name == 'release'
5052
steps:
5153
- uses: actions/checkout@v2
5254
- name: Set up Python

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include requirements.txt
1+
include requirements*.txt

docssrc/source/tutorials/tutorial_data_analysis/tutorial_data_analysis.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,10 @@
295295
}
296296
],
297297
"source": [
298-
"from type_infer.infer import infer_types\n",
298+
"from type_infer.api import infer_types\n",
299299
"from type_infer.base import TypeInformation\n",
300300
"\n",
301-
"type_information = infer_types(df, problem_definition.pct_invalid)\n",
301+
"type_information = infer_types(df, config={'engine': 'rule_based', 'pct_invalid': problem_definition.pct_invalid})\n",
302302
"\n",
303303
"{field.name for field in fields(TypeInformation)} # show the fields this dataclass has"
304304
]

lightwood/__about__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__title__ = 'lightwood'
22
__package_name__ = 'lightwood'
3-
__version__ = '23.11.1.0'
3+
__version__ = '23.12.4.0'
44
__description__ = "Lightwood is a toolkit for automatic machine learning model building"
55
__email__ = "community@mindsdb.com"
66
__author__ = 'MindsDB Inc'

lightwood/api/high_level.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import pandas as pd
55
from lightwood.api.types import JsonAI, ProblemDefinition
66
from dataprep_ml.insights import statistical_analysis
7-
from type_infer.infer import infer_types
7+
from type_infer.api import infer_types
88
from lightwood.api.predictor import PredictorInterface
99
from lightwood.api.json_ai import generate_json_ai
1010
from lightwood.helpers.codegen import code_from_json_ai as _code_from_json_ai, _module_from_code, _predictor_from_code
@@ -65,7 +65,7 @@ def json_ai_from_problem(df: pd.DataFrame, problem_definition: Union[ProblemDefi
6565
log.info(f'Dropping features: {problem_definition.ignore_features}')
6666
df = df.drop(columns=problem_definition.ignore_features)
6767

68-
type_information = infer_types(df, problem_definition.pct_invalid)
68+
type_information = infer_types(df, config={'engine': 'rule_based', 'pct_invalid': problem_definition.pct_invalid})
6969
stats = statistical_analysis(
7070
df, type_information.dtypes, problem_definition.to_dict(), type_information.identifiers)
7171

lightwood/encoder/text/short.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import torch
33
from lightwood.encoder import BaseEncoder
44
from lightwood.encoder.categorical import CategoricalAutoEncoder
5-
from type_infer.helpers import tokenize_text
5+
from type_infer.rule_based.helpers import tokenize_text
66
from lightwood.helpers.torch import concat_vectors_and_pad, average_vectors
77
import pandas as pd
88

tests/unit_tests/encoder/text/test_short.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import random
22
import unittest
33
from lightwood.encoder.text.short import ShortTextEncoder
4-
from type_infer.helpers import tokenize_text
4+
from type_infer.rule_based.helpers import tokenize_text
55
import torch
66

77
VOCAB = [

0 commit comments

Comments
 (0)