This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from slack_sdk.web import WebClient | |
from slack_sdk.socket_mode import SocketModeClient | |
from slack_sdk.socket_mode.response import SocketModeResponse | |
from slack_sdk.socket_mode.request import SocketModeRequest | |
import dotenv | |
import logging | |
from src.utils import ( | |
get_thread, | |
apply_chat_template, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"id": "abstract-destruction", | |
"metadata": {}, | |
"source": [ | |
"# Exploratory Data Analysis (EDA) on Property Sales Dataset\n", | |
"\n", | |
"This Jupyter notebook presents an exploratory data analysis (EDA) of a property sales dataset. <br/>\n", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 12, | |
"id": "3344492e", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"# get dataset\n", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FeatureExtractor(nn.Module): | |
def __init__(self, model, layer_names): | |
super().__init__() | |
self.model = model | |
self.layer_names = layer_names | |
self._features = defaultdict(list) | |
layer_dict = dict([*self.model.named_modules()]) | |
for layer_name in layer_names: | |
layer = layer_dict[layer_name] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder