Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Random Seeds for some Prebuilt Models #278

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sadedegel/prebuilt/telco_sentiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def build(save=True):

raw = load_telco_sentiment_train()
df = pd.DataFrame.from_records(raw)
df = shuffle(df)
df = shuffle(df, random_state=42)

console.log(f"Corpus Size: {CORPUS_SIZE}")

Expand Down
2 changes: 1 addition & 1 deletion sadedegel/prebuilt/tweet_profanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def build(save=True):

raw = load_offenseval_train()
df = pd.DataFrame.from_records(raw)
df = shuffle(df)
df = shuffle(df, random_state=42)

console.log(f"Corpus Size: {CORPUS_SIZE}")

Expand Down
6 changes: 3 additions & 3 deletions sadedegel/prebuilt/tweet_sentiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ def cv(k=3, max_instances=-1):
raw = load_tweet_sentiment_train()

df = pd.DataFrame.from_records(raw)
df = shuffle(df)
df = shuffle(df, random_state=42)

BATCH_SIZE = 1000

kf = KFold(n_splits=k)
kf = KFold(n_splits=k, random_state=42)
console.log(f"Corpus Size: {CORPUS_SIZE}")

scores = []
Expand Down Expand Up @@ -86,7 +86,7 @@ def build(max_instances=-1, save=True):
raw = load_tweet_sentiment_train()

df = pd.DataFrame.from_records(raw)
df = shuffle(df)
df = shuffle(df, random_state=42)

BATCH_SIZE = 1000

Expand Down