Questions tagged [code]

16 questions
2
votes
2 answers

How to make a dataframe with lists or vectors as its elements

This is something that I have been wondering for ages but have never been able to get an answer on. I am trying to understand how to make a dataframe in R, where each element of the dataframe is itself a vector or a matrix. For example, let us say…
Quality
  • 121
  • 4
1
vote
0 answers

About the Licence of Shared Codes on the Kaggle Site

I have one job offer and there are many codes on the Kaggle site based of that job offer which could be used for the company usage like the result of this google search, and Salomon Tetelepta codes: So if possible I like to find out have all the…
1
vote
0 answers

Unexpectedly long computation times with nested cross validation

Hello StackExchange community, I am trying to apply Nested Cross Validation on a pipeline to get a reliable estimate of the generalization error of my model. The pipeline includes two steps: Scaling the data Building a logistic regression…
Danby
  • 11
  • 1
1
vote
1 answer

Random Forest command in R for selected variables

All I can find online is how a random forest is run on all variables in a dataset using the period: RF <- randomForest(sale ~ ., data = TrainSet, importance = TRUE) What if I only want to apply the RF to selected variables in the dataset? Would I…
ColRow
  • 53
  • 7
1
vote
1 answer

How can I specify I want output of which units in LSTM?

I see this code concept(with Keras library) in most code examples of LSTM: model.add(LSTM(X)) model.add(Dense(Y)) But I don't really know if I have 10 time-steps in input side and need the last time-step in output is the following code…
user3486308
  • 1,260
  • 5
  • 16
  • 27
1
vote
1 answer

Site for implementing a research papers without code

Before a couple of months, I found a web page for implementing papers which are published without code. Someone posts a paper on it and then community competes to implement that paper. But I don't remember the name of the page and I cannot find it…
Antonio Jurić
  • 1,039
  • 8
  • 14
1
vote
1 answer

Why there is so few research on neural code of artificial neural networks and are there alternatives to the neural code approach?

I feel that the neural code/neural coding (how neurons or biases enode the symbolic concepts of the chains of concepts, e.g. each feature is chain of symbolic functions and their parameters) is the key to understanding neural networks and hence -…
1
vote
0 answers

Any transformer model (NLP) for code classification?

Does any Transformer (NLP) that is suitable for code classification tasks exist? For example, I have a lot of source codes of various categories (driver, game, email client, etc.). I want to distinguish (classify) these types using such a…
1
vote
0 answers

subtracting from multiple rows in a cvs file in python

I am trying to figure out how to subtract a set amount from a row if it goes over a value. For example, if I have a list of library accounts and I need to write a function whereby if an individual goes over their printing credits, they are charged…
Julie
  • 11
  • 1
0
votes
0 answers

Weird train and validation curves

I would like to train a GCN for protien-ligand binding affinity regression. I use GCNConv from pytorch geometric, ReLU for all activations and Dropout (0.2) after 2 dense layers each. Using ReLU for all activation functions. While my training curves…
0
votes
0 answers

Example of Reverse KL Divergence in Supervised Learning

It is of common knowledge that Supervised Learning uses forward KL divergence. However, I would like to use Reverse KL Divergence and am looking for examples of similar usage in literature. Most importantly, I would like to see how it is…
0
votes
1 answer

Extracting the code from Keras

Suppose I write a program in Keras for MNIST data set. I used TensorFlow as my backend in Keras. Is it possible in any way that I can extract the backend code used for TensorFlow that has been used by Keras. if yes, please provide an example.
enterML
  • 3,011
  • 9
  • 26
  • 38
0
votes
0 answers

Derive Keras Cosine Restarts Scheduler Formula from Source Code

I used Keras implementation of the cosine restarts algorithm. I need to know the exact formula of the algorithm for my LaTeX manuscript. The documentation is here. The implementation differs (in terms of parameters) from the original paper they…
trinity420
  • 101
  • 2
0
votes
0 answers

RShiny filtering for non matched data

im making an Rshiny application that matches up a user inputted reference to our existing table full of different reference numbers. A user will upload a single column list (usually an excel file) and the app searches our dataframe for matching and…
0
votes
0 answers

Shaping Data for time series ConvLSTM

I am having the same problem and I am unable to properly fit the input to the model. Can u please share some of your code snippets. mainly for input data reshaping and passing into the ConvLSTM2d. Thank you
Jainil
  • 1
1
2