Category "machine-learning"

GlobalAveragePooling1D equivalence with Lambda Layer

Is the GlobalAveragePooling1D Layer the same like calculating the mean with a custom Lambda Layer? The data is temporal, so x has shape (batch, time, features)

Assigning custom weights to embedding layer in PyTorch

Does PyTorch's nn.Embedding support manually setting the embedding weights for only specific values? I know I could set the weights of the entire embedding laye

Decision tree regression producing multiple lines

I'm trying to make a single variable regression using decision tree regression. However when I'm plotting the results. Multiple lines show in the plot just like

Instantiate Keras model with some weights before training

I have Keras model: pre-trained CV model + a few added layers on top I would want to be able to do model.predict before model.fit Q: how do I instantiate model

Pytorch RuntimeError: CUDA out of memory with a huge amount of free memory

While training the model, I encountered the following problem: RuntimeError: CUDA out of memory. Tried to allocate 304.00 MiB (GPU 0; 8.00 GiB total capacity; 1

How to quantify privacy, when using homomorphic encryption?

How can you measure how secure or private the new variables are relative to the real (actual) variables. I want to compare homomorphic encryption and differenti

Classifying the order of classes rather than the classes themselves

I'm currently tackling a classification problem that needs prediction of the order of objects in a sequence, but not the object class itself. I've spent quite s

Extracting education from Text data

I have bunch of text data describing people's eduation. I have already done some basic NLP processing to those text data. An example would be this : XXX receive

Semantic segmentation with detectron2

I used Detectron2 to train a custom model with Instance Segmentation and worked well. There are several Tutorials on google colab with Detectron2 using Instance

Activation function on the hidden layers for Regression models in neural networks

I am trying to predict a single output value,y, using two input features. I read that regression models usually don't use any activation function, and even when

vowpal wabbit java: get raw predictions

I am using Java API of vowpal wabbit to get predictions. I need raw prediction (same as -r output.txt) but I couldn't find any such method in VWMulticlassLearne

Handwritten digit recognition without deep learning techniques

I have a project to hand in which requires me to develop a program in python which would recognise handwritten numbers given in the form of image(i imagine the

ModelingToolKit - PDESystem: Boundary conditions and Domain for arbitrary geometry

I am quite new to Julia so I maybe missed the proper documentation. Is it possible to define a PDESystem in ModelingToolKit with symbolic BCs and Domain for arb

tokenization with huggingFace BartTokenizer

I am trying to use BART pretrained model to train a pointer generator network with huggingface transformer library. example input of the task: from transformers

How to get categorical values in catboost

This is my data. I created a model with CatBoostClassifier(). I can get the feature names list with: >>> model.feature_names_ ['title', 'value'] Firs

Keras ValueError: Dimensions must be equal - How to pass label-dependent values to custom loss function

I have a keras model with 5 outputs. My labels include 5 values to compare these to, but also 25 additional values representing a correlation matrix for the 5 v

Evaluate model result for multitask learning with keras

I designed a CNN for a multitask classification in keras, where I have one input and two different class of classes in output. I compiled the model in this way

Evaluate model result for multitask learning with keras

I designed a CNN for a multitask classification in keras, where I have one input and two different class of classes in output. I compiled the model in this way

Converting From .pt model to .h5 model

I am using Google colab. I want to convert .pt model from my google drive to .h5 model. I follow link https://github.com/gmalivenko/pytorch2keras and https://ww

dice coefficient and dice loss very low in UNET segmentation

I'm doing binary segmentation using UNET. My dataset is composed of images and masks. I divided the images and masks into different folders ( train_images, trai