text stringlengths 81 47k | source stringlengths 59 147 |
|---|---|
Question: <p>I am current tweaking and fine tuning my installer booking assignment optimizer, just recently upgraded my library to Optaplanner 6.2.0 Final. I am using the benchmarker to observe which optimization strategy (EntityTabu, SimulatedAnnealing, with or without TailChainSwapMove) I have a few questions:
<br>1)... | https://stackoverflow.com/questions/30700617/optaplanner-benchmarking-and-fine-tuning |
Question: <p>I'm working on facial expression recognition using CNN. I'm using Keras and Tensorflow as backend. My model is saved to h5 format.</p>
<p>I want to retrain my network, and fine-tune my model with the VGG model.</p>
<p>How can I do that with keras ? </p>
Answer: <p>Save your models architecture and weigh... | https://stackoverflow.com/questions/43869553/fine-tuning-keras-model |
Question: <p>I have developed a 3 layer deep autoencoder model for the mnist dataset as I am just practicing on this toy dataset as I am beginner in this fine-tuning paradigm</p>
<p>Following is the code</p>
<pre><code>from keras import layers
from keras.layers import Input, Dense
from keras.models import Model,Sequ... | https://stackoverflow.com/questions/56131203/fine-tuning-deep-autoencoder-model-for-mnist |
Question: <p>We can fine tune language models like <code>BERT</code>, <code>GPT-3</code>.</p>
<p>Can I fine tune <code>GitHub Copilot</code> model?</p>
<p>I have already looked into examples from <a href="https://copilot.github.com/" rel="nofollow noreferrer">https://copilot.github.com/</a> but cant find the details.</... | https://stackoverflow.com/questions/72554328/how-to-fine-tune-fine-tune-github-copilot |
Question: <p>There are two problems i met when i fine-tuning my code.
And i was trying to use X_1 and X_2 to regress.
There are different languages in the corpus.</p>
<pre><code>HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/xlm-roberta-base/resolve/main/tf_model.h5
During handling of the above... | https://stackoverflow.com/questions/70255359/how-to-use-xlmroberta-in-fine-tuning |
Question: <p>I'm facing an error while fine-tuning with a custom dataset on Vertex AI from the Google Cloud Platform (GCP). Here's the error message I encountered:
<a href="https://i.sstatic.net/egslj.png" rel="nofollow noreferrer">enter image description here</a>
I would greatly appreciate any assistance in resolving ... | https://stackoverflow.com/questions/76643013/exceed-quota-limits-when-fine-tuning-vertex-ai |
Question: <p>I have a dataset of java methods and I want to fine-tune a code llm to provide accurate method names. Right now the dataset is in a .txt format with methods in text separated by a delimiter(###del###).<br />
To do this I thought about using CodeLLaMa and more specifically code infilling.<br />
From the ori... | https://stackoverflow.com/questions/77739328/code-infilling-fine-tuning-with-llama-code |
Question: <p>For a few days I am following the instructions here:<a href="https://github.com/tensorflow/models/tree/master/inception" rel="nofollow">https://github.com/tensorflow/models/tree/master/inception</a>
for fine-tuning inception model. The problem is that my dataset is huge so converting it to TFRecords format... | https://stackoverflow.com/questions/40016933/tensorflow-fine-tune-inception-model |
Question: <p>I am fine-tuning a <code>mistral-7b</code> with Hugging Face <code>peft</code> and quantization. In my training loop, I am printing the gradient values for each batch which seem a bit unusual.</p>
<pre><code># Print gradients
for name, param in model_init.named_parameters():
if param.grad is not None... | https://stackoverflow.com/questions/78645055/model-fine-tuning-vanishing-gradient-problem |
Question: <p>I am trying to launch Vertex AI fine tuning.
I have followed the tutorial step by step:</p>
<ol>
<li>Created storage</li>
<li>Uploaded dataset in .jsonl format</li>
<li>Configured the model details etc.</li>
</ol>
<p>One entry in my dataset file (jsonl) looks as follows:</p>
<blockquote>
<p>{"messages... | https://stackoverflow.com/questions/77394815/vertex-ai-api-fine-tuning-the-chat-model |
Question: <p>I'm trying to follow the fine-tuning steps described in <a href="https://www.tensorflow.org/tutorials/images/transfer_learning#create_the_base_model_from_the_pre-trained_convnets" rel="nofollow noreferrer">https://www.tensorflow.org/tutorials/images/transfer_learning#create_the_base_model_from_the_pre-trai... | https://stackoverflow.com/questions/66460418/keras-model-gets-worse-when-fine-tuning |
Question: <p>I already know how to do it on vgg (fine tuning the last conv block) and inception (fine tuning the top two blocks). I'd like to know which layers is recommended to freeze in order to fine tuning a resnet model.</p>
Answer: <p>I think that there is no a state of the art strategy for this but I may share y... | https://stackoverflow.com/questions/47206714/which-layers-should-i-freeze-for-fine-tuning-a-resnet-model-on-keras |
Question: <p>I am trying to understand the concept of <code>fine-tuning</code> and <code>few-shot</code> learning.</p>
<p>I understand the need for fine-tuning. It is essentially tuning a pre-trained model to a specific downstream task. However, recently I have seen a plethora of blog posts stating zero-shot learning, ... | https://stackoverflow.com/questions/72611335/what-are-the-differences-between-fine-tuning-and-few-shot-learning |
Question: <p>When wanting to run a fine-tune request via the REST API I get the following error message:</p>
<pre><code>"error": {
"code": "invalidPayload",
"message": "The fineTune field is required."
}
</code></pre>
<p>Also, in the fine-tuning wizard I get a... | https://stackoverflow.com/questions/74088197/error-invalidpayload-with-microsoft-azure-openai-fine-tuning |
Question: <p>I am working with Universal Sentence Encoder (v4) as TF KerasLayer. I load the model, fine-tune and save it back to the file. The original size of the model is 1GB, but if I fine-tune it (without adding any Dense Layer) the size increased to 3GB. If I just load and save the model (without fine-tuning) the ... | https://stackoverflow.com/questions/69529302/keraslayer-model-increased-size-after-fine-tuning |
Question: <p>I'm running the following Python code for a fine-tune OpenAI task:</p>
<pre class="lang-py prettyprint-override"><code>import openai
from openai import cli
import time
import shutil
import json
openai.api_key = "*********************"
openai.api_base = "https://*********************" ... | https://stackoverflow.com/questions/77083082/openai-error-invalidrequesterror-the-specified-base-model-does-not-support-fine |
Question: <p>I'm fine-tuning a SetFit model on a French dataset and following the guide in <a href="https://huggingface.co/blog/setfit" rel="nofollow noreferrer">huggingface</a>. They mention this point on the site that I didn't quite understand</p>
<blockquote>
<p>"🌎 Multilingual support: SetFit can be used with... | https://stackoverflow.com/questions/76826638/what-does-fine-tuning-a-multilingual-checkpoint-mean |
Question: <p>This question is the same with <a href="https://datascience.stackexchange.com/questions/99815/how-can-i-check-a-confusion-matrix-after-fine-tuning-with-custom-datasets">How can I check a confusion_matrix after fine-tuning with custom datasets?</a>, on Data Science Stack Exchange.</p>
<h2>Background</h2>
<p... | https://stackoverflow.com/questions/68691450/how-can-i-check-a-confusion-matrix-after-fine-tuning-with-custom-datasets |
Question: <p>I am working on a binary prediction classification task, primarily focusing on fine-tuning a BERT model to learn the association between CVEs and CWEs. I've structured my task into three phases: first, using a large dataset of CVE and CWE for MLM pretraining; then using the pretrained model weights for fin... | https://stackoverflow.com/questions/78737176/the-impact-of-pretraining-on-fine-tuning-and-inference |
Question: <br />
im trying to fine tune tesseract 4.1.1 in my WSL shell. Doing that im following [this](https://www.statworx.com/en/content-hub/blog/fine-tuning-tesseract-ocr-for-german-invoices/)
tutorial.
I have created a number of .tiff files and now are trying to generate the corresponding .box files using lstmbox.... | https://stackoverflow.com/questions/72182929/tesseract-fine-tuning-cant-open-lstmbox |
Question: <p>I'm using mxnet's fine-tune example to fine-tune my own data with this code: </p>
<p><a href="https://github.com/dmlc/mxnet/blob/master/example/image-classification/fine-tune.py" rel="nofollow noreferrer">https://github.com/dmlc/mxnet/blob/master/example/image-classification/fine-tune.py</a></p>
<p>By vi... | https://stackoverflow.com/questions/44473612/mxnet-fine-tune-save-model |
Question: <p>I have some custom data I want to use to <em><strong>further pre-train</strong></em> the BERT model. I’ve tried the two following approaches so far:</p>
<ol>
<li>Starting with a pre-trained BERT checkpoint and continuing the pre-training with Masked Language Modeling (<code>MLM</code>) + Next Sentence Pred... | https://stackoverflow.com/questions/68461204/continual-pre-training-vs-fine-tuning-a-language-model-with-mlm |
Question: <p>I know the formal way of training a GPT2 model on custom documents is to first do semi-supervised fine tuning on the text of the documents followed by supervised fine-tuning on question answers from the same documents.
But the sole purpose of supervised fine-tuning being to acquire style of answering quest... | https://stackoverflow.com/questions/76489469/unsupervised-fine-tuning-on-custom-documents-after-the-supervised-fine-tuning-on |
Question: <p>I am experimenting using single or multiple GPUs for LLM fine-tuning by changing the CUDA_VISIBLE_DEVICES variable in the following cmd:</p>
<pre><code>CUDA_VISIBLE_DEVICES=0,1 accelerate launch --multi_gpu finetuning_with_lora_HfArgumentParser.py \
--model_name "/root/123/local_model" \
--train_... | https://stackoverflow.com/questions/79351083/multiple-gpu-fine-tuning-does-not-accelerate |
Question: <p>In <a href="https://github.com/tensorflow/models/blob/master/slim/scripts/finetune_inception_v3_on_flowers.sh" rel="nofollow noreferrer">this example</a> of fine-tuning an InceptionV3 model on the Flowers training set, there are two parts which say:</p>
<pre><code># Fine-tune only the new layers for 1000 ... | https://stackoverflow.com/questions/45193033/fine-tuning-from-an-existing-checkpoint-meaning-of-steps |
Question: <p>I am doing fine-tuning on the pretrained on the Image-net Challenge, inception v3 network of tensorflow. In my classification problem I am using 2 classes because I want to understand if an image contains food or not. My dataset is imbalanced because I have a lot more images on the non-food class (which ma... | https://stackoverflow.com/questions/41348902/imbalanced-fine-tuning-of-inception-v3-network-tensorflow |
Question: <p>What are the most suitable open source LLMs and frameworks for fine-tuning? I intend to use this model in a quite specific domain, perhaps a physics mentor for a school. How long might it take (with 3070 Ti 11Gb) to achieve acceptable accuracy for this purpose? I assume that the process of fine-tuning a ne... | https://stackoverflow.com/questions/76561780/fine-tuning-an-open-source-llm-for-a-new-language |
Question: <p>Regarding fine-tuning CNNs in PyTorch, as per <a href="https://pytorch.org/tutorials/beginner/saving_loading_models.html" rel="nofollow noreferrer">SAVING AND LOADING MODELS</a>:</p>
<blockquote>
<p>If you only plan to keep the best performing model (according to the acquired validation loss), … You must s... | https://stackoverflow.com/questions/68636072/fine-tuning-pytorch-no-deepcopy |
Question: <p>I need a hand to fine tune the plot resulting from my code.
the code is really rude, but basically it serves to fit some data, that have two peaks in the ditribution of counts versus time. The rising part of each peak is fitted with a gaussian, and the decaying part with an exponential.
I need to fine tuni... | https://stackoverflow.com/questions/15551956/python-fine-tuning-several-fits-functions |
Question: <p>I am fine-tuning BERT on a financial news dataset.
Unfortunately BERT seems to be trapped in a local minimum. It is content with learning to always predict the same class.</p>
<ul>
<li>balancing the dataset didnt work</li>
<li>tuning parameters didnt work as well</li>
</ul>
<p>I am honestly not sure what i... | https://stackoverflow.com/questions/64675655/bert-always-predicts-same-class-fine-tuning |
Question: <p>I am encountering an issue with fine-tuning an EfficientNetB0 model that was originally pretrained on ImageNet.</p>
<ul>
<li><p>Model Training and Fine-Tuning: I start with an EfficientNetB0 model pretrained on ImageNet and fine-tune it on my specific dataset.</p>
</li>
<li><p>Saving the Model: After fine-... | https://stackoverflow.com/questions/78922573/fine-tuning-efficientnetb0-with-pretrained-imagenet-is-not-reproducible |
Question: <p>I have a keras model which is trained on 5 classes,The final layers of the model look like so</p>
<pre><code>dr_steps = Dropout(0.25)(Dense(128, activation = 'relu')(gap_dr))
out_layer = Dense(5, activation = 'softmax')(dr_steps)
model = Model(inputs = [in_lay], outputs = [out_layer])
</code></pre>
<p>What... | https://stackoverflow.com/questions/57702247/fine-tuning-custom-keras-model |
Question: <p>I'm using PIG latin for log processing because its expressiveness in a problem where the data is not big enough to worry about setting up a whole hadoop cluster. I'm running PIG in local mode but I think that it isn't using all the cores it has available (16 at the moment), monitoring the CPU shows 200% of... | https://stackoverflow.com/questions/4460727/fine-tuning-pig-for-local-execution |
Question: <p>I want to fine-tune an object detector in PyTorch. For that, I was using this tutorial:</p>
<p><a href="https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html" rel="nofollow noreferrer">https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html</a></p>
<p>However, FastRCNN model is ... | https://stackoverflow.com/questions/71094251/fine-tuning-ssd-lite-in-torchvision |
Question: <p>I am doing fine-tuning of a model and then I want to save this model to convert it to the GGUF format to use in Ollama. However, when converting to the GGUF format, I get the following error: ValueError: Can not map tensor 'model.layers.0.mlp.down_proj.weight.absmax'.</p>
<p>I'm not sure if I am saving it ... | https://stackoverflow.com/questions/78631565/how-to-save-fine-tuning-llm-model |
Question: <p>I'm having trouble fine tuning a regex for Nginx url rewrite rules, What I am trying to do is take the first two pieces of the url and convert them to variables (nothing too fancy, and should be simple). </p>
<p>e.g. I type in <a href="http://www.webserver.com/piece1/piece2" rel="nofollow">http://www.web... | https://stackoverflow.com/questions/19272219/nginx-url-rewrite-fine-tuning |
Question: <p>Im new to MXNet and I was wondering if any one knows how to fine tune more layers in CNN other than only the FC layers. All the examples that Im looking at, have fine tuning only on the FC layers. In Keras this can be easily done and more blocks of ConvNets other than FC block can be fine tuned: <a href="h... | https://stackoverflow.com/questions/49567237/fine-tuning-on-mxnet-other-than-fc-layers |
Question: <h1>Background</h1>
<p>While fine tuning a classification model in Keras, it printed <code>val_acc: 0.8456</code>. <a href="https://pythonexample.com/snippet/python/transfer_learning_keras_01py_gengho_python" rel="nofollow noreferrer">This code</a> was used for fine-tuning.</p>
<p>After fine-tuning, manuall... | https://stackoverflow.com/questions/45399535/keras-accuracy-discrepancy-in-fine-tuned-model |
Question: <p>I would like to fine-tune already fine-tuned BertForSequenceClassification model with new dataset containing just 1 additional label which hasn't been seen by model before.</p>
<p>By that, I would like to add 1 new label to the set of labels that model is currently able of classifying properly.</p>
<p>More... | https://stackoverflow.com/questions/67158554/fine-tuning-models-classifier-layer-with-new-label |
Question: <p>I'm working on a website with a left navigation bar and I need some help fine-tuning the transition delays. Here's the website: <a href="http://104.193.173.104/modx/index.php" rel="nofollow">http://104.193.173.104/modx/index.php</a></p>
<p><strong>Desktop</strong></p>
<ul>
<li>Starts wide (240px) with so... | https://stackoverflow.com/questions/34891345/fine-tuning-transition-delays-css |
Question: <p>In his article 'Language Model Fine-Tuning For Pre-Trained Transformers' Thilina Rajapakse (<a href="https://medium.com/skilai/language-model-fine-tuning-for-pre-trained-transformers-b7262774a7ee" rel="nofollow noreferrer">https://medium.com/skilai/language-model-fine-tuning-for-pre-trained-transformers-b7... | https://stackoverflow.com/questions/61482810/fine-tuning-a-pretrained-language-model-with-simple-transformers |
Question: <p>In the TensorFlow documentation it is highlighted that it is important during fine tuning to set the base_model to ’inference mode’ setting the parameter <code>training = False</code> when calling the <code>base_model</code>. The reason to do so is because of the <code>tf.keras.layers.BatchNormalization</c... | https://stackoverflow.com/questions/71006896/fine-tuning-a-model-base-model-dropout-in-inference-or-training-mode |
Question: <p>Actually I am trying to fine tune inceptionV3 model using tf slim fine tuning example on git hub it is giving me this error :</p>
<p>InvalidArgumentError (see above for traceback): Cannot assign a device to node 'InceptionV3/AuxLogits/Conv2d_2b_1x1/biases/RMSProp_1': Could not satisfy explicit device spec... | https://stackoverflow.com/questions/44773074/does-tf-slim-fine-tuning-require-gpu |
Question: <p>Doing things on Google Colab.</p>
<ul>
<li>transformers: 4.10.2</li>
<li>pytorch-lightning: 1.2.7</li>
</ul>
<pre class="lang-py prettyprint-override"><code>import torch
from torch.utils.data import DataLoader
from transformers import BertJapaneseTokenizer, BertForSequenceClassification
import pytorch_ligh... | https://stackoverflow.com/questions/69249187/how-to-test-a-model-before-fine-tuning-in-pytorch-lightning |
Question: <p>I want GPT-3 model to know everything about my domain area, for example my inbox. I want to be able to ask it questions like "Have I even had a Silicon Valley Bank account?" and get correct response. I've familiarized myself with <a href="https://platform.openai.com/docs/guides/fine-tuning" rel="... | https://stackoverflow.com/questions/75722268/fine-tuning-of-opeanai-model-with-unsupervised-set-not-supervised |
Question: <p>I want to fine-tune pre-trained multilingual Models from the Huggingface transformers library (MarianMT in this case) for domain-specific translation. I want the models to be able to translate between 5 different languages. I have domain-specific datasets for every sentence pair (e.g. de-en, en-de, de-es, ... | https://stackoverflow.com/questions/76201629/fine-tuning-of-multilingual-translation-models-huggingface-transformers-helsin |
Question: <p>I'm new to LLMs and fine-tuning in general so please bear with me if I've made obvious mistakes!</p>
<p><em>I have no GPU/cloud based platform other than a free tral GCP account.</em></p>
<p>I'm trying to fine-tune an LLM using the RAFT method (Retrieval Augmented Fine-Tuning). The goal is to enhance the m... | https://stackoverflow.com/questions/78892614/cost-effective-methods-for-fine-tuning-llms-with-raft |
Question: <p>I am new in this world of transformers and NLP, and I am having a problem when fine tuning T5 for my specific use case.</p>
<p>What I want to achieve, is that the model receives an input text, and outputs a JSON (as a string) of the relevant information in the text.</p>
<p>There are 3 formats that the mode... | https://stackoverflow.com/questions/76932312/fine-tuning-t5-not-converging |
Question: <p>I've noticed that most fine-tuning of CNN over new dataset is done only on the "last" fully connected (fc) layer.</p>
<p>I'm interested in fine-tuning from the "first" fully connected layer: that is, I want to use mid-level features from convolution and pooling layers as they are, (supposing it's trained ... | https://stackoverflow.com/questions/32536426/fine-tuning-a-cnn-from-a-lower-fc-layer |
Question: <p>I am new at Caffe and I want to use already trained caffeNet model with ImageNet. I applied net surgery by removing a convolutional intermediate conv4 layer. </p>
<pre><code>'layer {
name: "relu3"
type: "ReLU"
bottom: "conv3"
top: "conv3"
}
layer {
name: "relu5-new"
type: ... | https://stackoverflow.com/questions/51464821/is-caffe-net-surgery-requires-fine-tuning |
Question: <p>I’m working on a domain-specific problem where no pre-existing datasets are available. I’ve manually collected some examples and initially used them in Large Language Model (LLM) prompts (few-shot learning). However, the results are not very good, and i am doing fine-tuning for better outcomes.</p>
<p>I’ve... | https://stackoverflow.com/questions/79238709/fine-tuning-with-custom-dataset-formatting-and-best-practices |
Question: <p>I am trying to fine tune flair ner model using these lines of code:</p>
<pre><code>embedding_types = [WordEmbeddings('glove'),
WordEmbeddings('extvec'),
WordEmbeddings('crawl'),]
embeddings = StackedEmbeddings(embeddings=embedding_types)
pretrained_model = SequenceTagger.load('ner')
trainer :... | https://stackoverflow.com/questions/75824467/fine-tuning-flair-ner-model |
Question: <p>I am trying to add a layer to fine-tune the MobileNet_V3_Large pre-trained model. I looked around at the PyTorch docs but they don't have a tutorials for this specific pre-trained model. I did find that I can fine-tune MobileNet_V2 with:</p>
<pre class="lang-py prettyprint-override"><code>model_ft =models.... | https://stackoverflow.com/questions/69321848/fine-tuning-pretrained-model-mobilenet-v3-large-pytorch |
Question: <p>Can anyone help in tuning this method? When I log the "files" - it only takes around 5 seconds. But takes more than 10 minutes before returning the "fileInfo"</p>
<pre><code>// fileSystem is HDFS
// dateNow = java.util.Date
// basePath = new Path("/")
// filePattern = "*.sf"
private Map<String, Long&g... | https://stackoverflow.com/questions/36764442/fine-tuning-method-listfiles |
Question: <p>I'm following <a href="https://beta.openai.com/docs/guides/fine-tuning/create-a-fine-tuned-model" rel="noreferrer">this OpenAI tutorial</a> about fine-tuning.</p>
<p>I already generated the dataset with the openai tool. The problem is that the outputs encoding (inference result) is mixing UTF-8 with non UT... | https://stackoverflow.com/questions/69928517/encoding-issues-on-openai-predictions-after-fine-tuning |
Question: <p>I’m attempting to use <a href="https://github.com/coqui-ai/TTS" rel="nofollow noreferrer">TTS</a> to fine tune a Tacotron2 TTS model. If it makes a difference, I'm using Python 3.9.1 and I'm fine-tuning the latest <code>tts_models--en--ljspeech--tacotron2-DDC</code>.</p>
<p>During the fine-tuning process, ... | https://stackoverflow.com/questions/77520193/tts-tacotron2-fine-tuning-missing-layers-and-no-output-sound |
Question: <p>I run a very simple website (basically a redirect based on a php database) which gets on average 5 visits per second throughout the day, but at peak times (usually 2-3 times a day), this may go up to even 300 visits/s or more. I've modified the default apache settings as follows (based on various info foun... | https://stackoverflow.com/questions/23852763/apache-configuration-fine-tuning |
Question: <p>I try to fine-tune pre train Pyannote model for VAD task.
I can fine-tune it for Segmentation task and everything goes well and I can improve the model results.</p>
<p>Here is the code how I fine-tune it:</p>
<pre><code>pretrained = Model.from_pretrained(config["pretrained_model_path"])
registry.... | https://stackoverflow.com/questions/79372052/fine-tuning-pyannote-model-for-vad-task-issues-after-training |
Question: <p>I executed this excellent tutorial:
<a href="https://towardsdatascience.com/building-a-multi-label-text-classifier-using-bert-and-tensorflow-f188e0ecdc5d" rel="nofollow noreferrer">https://towardsdatascience.com/building-a-multi-label-text-classifier-using-bert-and-tensorflow-f188e0ecdc5d</a></p>
<p>I unde... | https://stackoverflow.com/questions/66253543/bert-model-fine-tuning-and-migrating-to-tf2 |
Question: <p>I want to know how much the fine-tuned model improves compared to the model without fine-tuning.I want to compare the performance of the pre-trained model(BERT) and the model(fine-tuned BERT) obtained by fine-tuning the pre-trained model on text classification.I know how to fine-tune BERT for text classifi... | https://stackoverflow.com/questions/73250207/how-to-use-pre-trained-models-for-text-classification-comparing-a-fine-tuned-mod |
Question: <p>I'm using <code>open-images-v7</code> dataset (accessing via <code>fiftyone</code> lib) and <code>keras_cv</code> lib to fine tune <code>DeepLabV3Plus</code> with <code>mobilenet_v3_small</code> backbone, but the accuracy doesn't improve with epochs at all, and I'm getting shape warning.</p>
<p><strong>Dat... | https://stackoverflow.com/questions/79645357/problem-in-fine-tuning-deeplabv3plus-using-keras-cv-for-semantic-segmentation |
Question: <p>Since I start fine tuning with the weights learned by transfer learning, I would expect the loss to be the same or less. However it looks like it starts fine tuning using a different set of starting weights.</p>
<p>Code to start transfer learning:</p>
<pre><code>base_model = tf.keras.applications.MobileNet... | https://stackoverflow.com/questions/72548173/loss-when-starting-fine-tuning-is-higher-than-loss-from-transfer-learning |
Question: <p>I'm going through a few research papers based on neural network, where I came across the word Fine Tuning on pre-trained CNN network. What does it actually do?</p>
Answer: <p><strong>Pre-trained:</strong></p>
<p>Firstly we have to understand pre-trained model. Pre-trained models are the models which weigh... | https://stackoverflow.com/questions/56680727/what-is-fine-tuning-in-reference-to-neural-network |
Question: <p>If I understood correctly:</p>
<ol>
<li>by default nodejs provides a worker pool, whose size can be tuned with UV_THREADPOOL_SIZE (default: 4)</li>
<li>a cpu or io intensive task can use thread from this worker pool (this is the case for node modules like DNS or Crypto) or create a dedicated worker pool</l... | https://stackoverflow.com/questions/79201418/nodejs-worker-pool-fine-tuning |
Question: <p>I am currently fine-tuning a BERT model on a sequence classification task. To do this, I am using the transformers framework. This requires a Batch input in a Trainer: <a href="https://huggingface.co/transformers/_modules/transformers/trainer.html" rel="nofollow noreferrer">https://huggingface.co/transform... | https://stackoverflow.com/questions/64805769/fine-tuning-bert-on-sequenceclassification-using-transformers-framework |
Question: <p>I'm working on fine-tuning LayoutLMv3 using the CORD-v2 dataset. I'm struggling with the data preprocessing part, specifically on how to correctly extract the total amount (TTC) from the images. The examples I've found online seem to use the older CORD dataset, which has a different format. The new CORD-v2... | https://stackoverflow.com/questions/78606543/fine-tuning-layoutlmv3-using-cord-v2-dataset |
Question: <p>What's the difference between the two? Articles seem to treat them differently... that is, a paper would show research on either text classification <strong>or</strong> on sentence classification.</p>
<p>I wonder - if one applied sentence classification on a whole text, and then classified the paragraph a... | https://stackoverflow.com/questions/23460996/text-classification-vs-sentence-classification |
Question: <p>The text data is organized as vector with 20,000 elements, like [2, 1, 0, 0, 5, ...., 0].
i-th element indicates the frequency of the i-th word in a text. </p>
<p>The ground truth label data is also represented as vector with 4,000 elements, like [0, 0, 1, 0, 1, ...., 0].
i-th element indicates whether ... | https://stackoverflow.com/questions/35400065/multilabel-text-classification-using-tensorflow |
Question: <p>I'm working on Arabic text classification using NLTK3.. I got the following error ,can you please help me to figure out the bug</p>
<pre><code>"calssifier =NaiveBayesClassifier.train(train_set)
File "/usr/local/lib/python2.7/dist-packages/nltk/classify/naivebayes.py", line 194, in train
for fname, f... | https://stackoverflow.com/questions/27572923/text-classification-using-nltk3-error |
Question: <p>I'm currently studying on text classification, focusing on feature selection. Can anyone suggest me any software/program that I can use for text classification that provides feature selection function (particularly Information Gain, Chi Square, Odds Ratio, Mutual Information, etc.)? </p>
<p>Thanks and bes... | https://stackoverflow.com/questions/10309203/feature-selection-in-text-classification |
Question: <p>Are there any pre-made libraries for PHP that can be used to help with tasks involving unsupervised text classification <sup><a href="http://en.wikipedia.org/wiki/Document_classification#Automatic_document_classification" rel="nofollow">information</a></sup>?</p>
<p>I've looked around the site at other qu... | https://stackoverflow.com/questions/15305817/unsupervised-text-classification-with-php |
Question: <p>I'm working on multilabel text classification.
I'm tried to print the classification report for the machine learning but its print for each class alone.
how I can get the classification report for all classes together?
This part of the code</p>
<p>this code for the labels</p>
<pre><code>categories = list(d... | https://stackoverflow.com/questions/67751096/classification-report-for-multilabel-text-classification |
Question: <p>I am new to BERT and try to learn BERT Fine-Tuning for Text Classification via a coursera course <a href="https://www.coursera.org/projects/fine-tune-bert-tensorflow/" rel="nofollow noreferrer">https://www.coursera.org/projects/fine-tune-bert-tensorflow/</a></p>
<p>Based on the course, I would like to comp... | https://stackoverflow.com/questions/67140627/bert-text-classification |
Question: <p>Is there any example on how can TensorFlow be used for text classification using neural networks?</p>
Answer: <p>I've started putting together a set of examples for text classification on DBPedia dataset (predicting class of object from its description) as part of examples for <strong>Scikit Flow</strong>... | https://stackoverflow.com/questions/33705284/tensorflow-text-classification-using-neural-networks |
Question: <p>I want to perform text classification using word2vec.
I got vectors of words.</p>
<pre><code>ls = []
sentences = lines.split(".")
for i in sentences:
ls.append(i.split())
model = Word2Vec(ls, min_count=1, size = 4)
words = list(model.wv.vocab)
print(words)
vectors = []
for word in words:
vectors.a... | https://stackoverflow.com/questions/49643974/how-to-do-text-classification-using-word2vec |
Question: <p>I'm a beginner to Weka and I'm trying to use it for text classification. I have seen how to StringToWordVector filter for classification. My question is, is there any way to add more features to the text I'm classifying? For example, if I wanted to add POS tags and named entity tags to the text, how would ... | https://stackoverflow.com/questions/22587682/text-classification-using-weka |
Question: <p>I am interested in doing text classification with <a href="http://deeppavlov.ai" rel="nofollow noreferrer">DeepPavlov</a> chatbot framework. </p>
<p>The problem is I don't have enough training data. Ideally, I would like to do text classification with just few samples for each class.</p>
Answer: <p>You s... | https://stackoverflow.com/questions/53445949/how-to-do-text-classification-with-deeppavlov |
Question: <p>I am performing text classification using a Deep Neural network. My problem is that I am receiving high accuracy 98 on train data whereas my validation accuracy is 49.</p>
<p>I have tried the following:</p>
<ol>
<li>Shuffled the data</li>
<li>My train and validation data is 80:20 split</li>
<li>I am usin... | https://stackoverflow.com/questions/60962683/text-classification-dnn |
Question: <p>Why my <code>lstm</code> model is getting better accuracy than my bi <code>lstm</code> model? (multi-class text classification with 5 classes using word2vec and <code>lstm</code>) I tried to find the answer in any paper but I can't find it, almost all the paper said <code>bilstm</code> can improve the accu... | https://stackoverflow.com/questions/65656826/multiclass-text-classification |
Question: <p>I am doing text classification and plan to use word2vec word embeddings.
I have used gensim module for word2vec Training.</p>
<p>I have tried several Options. But I am getting error that word 'xyz' not in vocabulary. I am not able to find my mistake.</p>
<h1>Text processing</h1>
<pre><code>def clean_tex... | https://stackoverflow.com/questions/57525190/text-classification-with-word2vec |
Question: <p>I have around 10,000 text documents.</p>
<p>How to represent them as feature vectors, so that I can use them for text classification?</p>
<p>Is there any tool which does the feature vector representation automatically?</p>
Answer: <p>The easiest approach is to go with the <a href="http://en.wikipedia.or... | https://stackoverflow.com/questions/9273536/how-to-represent-text-documents-as-feature-vectors-for-text-classification |
Question: <p>I'm going crazy in this project. This is multi-label text-classification with lstm in keras. My model is this: </p>
<pre><code>model = Sequential()
model.add(Embedding(max_features, embeddings_dim, input_length=max_sent_len, mask_zero=True, weights=[embedding_weights] ))
model.add(Dropout(0.25))
model.ad... | https://stackoverflow.com/questions/51962128/lstm-text-classification-bad-accuracy-keras |
Question: <p>I was trying to do some text classification with spacy but i get an error about my vucabulary being empty.</p>
<p>I tried a classic dataset but i get the same error, i've seen some suggestion to split the text part but i have many lines not a huge one.</p>
<p>this is the code:</p>
<pre><code>#
df_amazon =... | https://stackoverflow.com/questions/73457037/text-classification-using-spacy |
Question: <p>I'm new to using Mallet. I usually use WEKA for classification, and now I'm trying to use Mallet for text classification. In Weka, there are attributes (such as word length or top-n word occurrence) that we choose ourselves and make the .arff file. </p>
<p>I have read about the input format for Mallet in ... | https://stackoverflow.com/questions/31367381/text-classification-using-mallet |
Question: <p>I am implementing a text classification system using Mahout. I have read stop-words removal and stemming helps to improve accuracy of Text classification. In my case removing stop-words giving better accuracy, but stemming is not helping much. I found 3-5% decrease in accuracy after applying stemmer. I tri... | https://stackoverflow.com/questions/22603332/stemming-in-text-classification-degrades-accuracy |
Question: <p>Which product (Mallet or Weka) is better for text classification task:</p>
<ol>
<li>Simpler to train</li>
<li>Better results</li>
<li>Documentation</li>
</ol>
<p>I'm new for this problem so any comments will be great</p>
Answer: <p>MALLET is much easier to use and does most of its job invisibly. You don... | https://stackoverflow.com/questions/7953935/mallet-vs-weka-for-text-classification |
Question: <p>Does VIF matter when it comes to dealing with Text Classification. I have a large dataset, after tokenizing the text, I have 400 columns of stemmed words. After running tests for VIF, I noticed that most variable's VIF were less than 5. The remaining VIF's fluctuated between 6-37, should I be removing thes... | https://stackoverflow.com/questions/68411148/text-classification-and-vif |
Question: <p>I need your help please...</p>
<p>I am trying go get the following Text Classification Module working:</p>
<pre class="lang-py prettyprint-override"><code> # Train and validate model.
history = model.fit(x_train,
train_labels,
epochs=epochs,
callbacks=callbacks... | https://stackoverflow.com/questions/60104840/model-fit-value-error-text-classification-model |
Question: <p>HI i am new to python programming language, based on the various reference i have build the text classification model using logistic regression, Below is the code.</p>
<pre><code>from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
import ... | https://stackoverflow.com/questions/64353644/text-classification-with-python |
Question: <p>As discussed <a href="http://classes.seattleu.edu/computer_science/csse470/Madani/ABCs.html#centroid" rel="nofollow">here</a>, Do you know of any tools which provides a centroid algorithm for text classification in java?</p>
Answer: <p><a href="http://scikit-learn.org/" rel="nofollow">scikit-learn</a> inc... | https://stackoverflow.com/questions/10663854/centroid-algorithm-for-text-classification-tools |
Question: <p>I want to classify some texts based on available keywords in each class. In other words, I have a list of keywords for each category. I need some heuristic methods using these keywords and determine top similar categories for each text. I should say that in the current phase of the project, I didn't want t... | https://stackoverflow.com/questions/62127122/keyword-based-text-classification |
Question: <p>I am particularly new to accord.net</p>
<p>My case: Classifying short text of various length into 100+ different categories.</p>
<p>Input sample (10k Records in a .csv file)</p>
<p>Text ------------------------- Category</p>
<p>Cabinet -------------------- Furniture and Fittings</p>
<p>Coffee Table --... | https://stackoverflow.com/questions/59123503/text-classification-naivebayes-accord-net |
Question: <p>I have a lucene index with a lot of text data, each item has a description, I want to extract the more common words from the description and generate tags to classify each item based on the description, is there a lucene.net library for doing this or any other library for text classification?</p>
Answer: ... | https://stackoverflow.com/questions/8990804/text-classification-extract-tags-from-text |
Question: <p>I am working on a text classification problem. I have attached a simple dummy snippet of a text classification model I have trained.</p>
<p>How do I deploy the model on new_text? When the model is used on <code>check_predictions</code>, it classifies text correctly, however, when new data is used, the clas... | https://stackoverflow.com/questions/64536994/deploying-a-text-classification-model-on-new-unseen-text |
Question: <p>I am trying to generate PMML (using jpmml-sklearn) for text classification pipeline. The last line in the code - sklearn2pmml(Textpipeline, "TextMiningClassifier.pmml", with_repr = True) - crashes.</p>
<pre><code>from sklearn.datasets import fetch_20newsgroups
from sklearn.feature_extraction.text import C... | https://stackoverflow.com/questions/44560823/generate-pmml-for-text-classification-pipeline-in-python |
Question: <p>I am trying to perform text classification using GPTNeo, using the tweet_eval dataset from huggingface. I am following this example <a href="https://huggingface.co/docs/transformers/tasks/sequence_classification" rel="nofollow noreferrer">https://huggingface.co/docs/transformers/tasks/sequence_classificati... | https://stackoverflow.com/questions/76476765/training-llm-to-perform-text-classification |
Question: <p>What text preprocessing produces the best results for supervised text classification using <a href="https://github.com/facebookresearch/fastText" rel="nofollow noreferrer">fastText</a>?</p>
<p>The official documentation shows a only a <a href="https://fasttext.cc/docs/en/supervised-tutorial.html#preproces... | https://stackoverflow.com/questions/62244474/text-preprocessing-for-text-classification-using-fasttext |
Question: <p>I am doing a project in clinical text classification. In my corpus ,data are already labelled by code (For examples: 768.2, V13.02, V13.09, 599.0 ...). I already separated text and labels then using word-embedded for text. I am going to feed them into convolution neural network. However, the labels are nee... | https://stackoverflow.com/questions/38710993/encoding-datas-label-for-text-classification |
Question: <p>i read this article :<strong>A hybrid classification method of k nearest neighbor, Bayesian methods
and genetic algorithm</strong> <br>
it's proposed to use genetic algorithm in order to improve text classification<br>
i want to replace Genetic algorithm with SVM but i don't know if it works or not<br>
i m... | https://stackoverflow.com/questions/17700308/text-classification-using-svm |
Question: <p>I have read stemming harms precision but improves recall in text classification. How does that happen? When you stem you increase the number of matches between the query and the sample documents right?</p>
Answer: <p>It's always the same, if you raise recall, your doing a generalisation. Because of that, ... | https://stackoverflow.com/questions/10369479/does-stemming-harm-precision-in-text-classification |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.