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

Updates from various demos #5

Closed
wants to merge 1 commit into from
Closed

Updates from various demos #5

wants to merge 1 commit into from

Conversation

kerinin
Copy link
Contributor

@kerinin kerinin commented Sep 1, 2023

No description provided.

@cla-bot cla-bot bot added the cla-signed label Sep 1, 2023
@kerinin kerinin requested a review from epinzur September 1, 2023 16:18
@@ -95,7 +95,7 @@
" if \"subtype\" in df.columns:\n",
" df = df[df[\"subtype\"].isnull()]\n",
" # only keep these columns\n",
" df = df[df.columns.intersection([\"ts\", \"user\", \"text\", \"thread_ts\"])]\n",
" df = df[df.columns.intersection([\"ts\", \"user\", \"text\", \"thread_ts\", \"reactions\"])]\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why adding reactions?

" \"channel\" : threads.col(\"channel\").else_(non_threads_threads.col(\"channel\")),\n",
"})\n",
"\n",
"joined.preview(5)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't fixed yet... we need to keep the above code: kaskada-ai/kaskada#725

# Load user label map
le = preprocessing.LabelEncoder()
with open('labels_.json') as f:
with open('labels.json') as f:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have expected changes elsewhere to match up with this...

@@ -97,7 +98,7 @@ def handle_message(client, req):
"thread": messages.col("thread_ts"),
})) \
.select("user", "ts", "text") \
.collect(max=2)
.collect(max=20)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this intentional?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe you don't want to replace this?

@epinzur
Copy link
Contributor

epinzur commented Nov 2, 2023

can we close this one?

@kerinin kerinin closed this Nov 2, 2023
@epinzur epinzur deleted the rm/tweaks branch November 2, 2023 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants