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": 1, | |
"id": "134cb3e4-05ef-447f-aabc-eacb9b7414cd", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"import os\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
from torch.utils.data import DataLoader | |
import math | |
from sentence_transformers import models, losses | |
from sentence_transformers import SentencesDataset, LoggingHandler, SentenceTransformer, util, InputExample | |
from sentence_transformers.evaluation import EmbeddingSimilarityEvaluator, SimilarityFunction | |
import logging | |
from datetime import datetime | |
import sys | |
import os | |
import gzip |
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 logging | |
from pathlib import Path | |
import torch | |
import random | |
import pandas as pd | |
from sklearn.metrics import f1_score | |
from farm.data_handler.data_silo import DataSilo, DataSiloForCrossVal | |
from farm.data_handler.processor import TextClassificationProcessor | |
from farm.modeling.optimization import initialize_optimizer |
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 logging | |
from pathlib import Path | |
import torch | |
from farm.data_handler.data_silo import DataSilo, DataSiloForCrossVal | |
from farm.data_handler.processor import TextClassificationProcessor | |
from farm.modeling.optimization import initialize_optimizer | |
from farm.modeling.adaptive_model import AdaptiveModel | |
from farm.modeling.language_model import LanguageModel | |
from farm.modeling.prediction_head import TextClassificationHead |
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.
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