text
stringlengths
81
47k
source
stringlengths
59
147
Question: <p>I have read the article about the following three links</p> <p><a href="http://answers.opencv.org/question/42623/face-recognition-using-svm/" rel="nofollow noreferrer">http://answers.opencv.org/question/42623/face-recognition-using-svm/</a></p> <p><a href="https://stackoverflow.com/questions/14694810/usi...
https://stackoverflow.com/questions/27766889/can-anyone-teach-me-how-to-implement-multiple-binary-classification-for-svm-by-o
Question: <p><strong>EDIT: embarrassingly my error was shuffling the data only and not the labels.</strong></p> <p>I was given an assignment to create an lstm autoEncoder in pytorch to reconstruct mnist images. next the assignment asked to modify the network to also allow for classification of the reconstructed images,...
https://stackoverflow.com/questions/78056762/pytorch-correct-implementation-of-classification-on-an-autoencoder
Question: <p>I am a beginner in Deep Learning. I trying to implement LSTM for binary classification.I have EEG dataset which has 11 features(continuous valued) and 1 output which is either 0 or 1. The subjects(persons) were watching a 5 minute long video and after every 30 seconds they gave their review whether they li...
https://stackoverflow.com/questions/60775942/how-to-implement-lstm-for-binary-classification
Question: <p>Am I correct to assume that the classification models implementations in scikit-learn and WEKA (e.g. Naive Bayes, Random Forest etc.) produce the same results (not taking processing time and such into account)?</p> <p>I am asking, because I wrote my pipeline in Python and would like to use scikit-learn for...
https://stackoverflow.com/questions/66478239/scikit-learn-vs-weka-classification-model-implementation
Question: <p>I am using the LightGBM package in R to create my model. I have already defined a function that calculates macro-F1 (defined as the average of F1s throughout all class predictions). I need to report CV macro-F1, so I would like to embed this score into <code>lgb.cv</code>. Nevertheless, the metric is not a...
https://stackoverflow.com/questions/72213497/how-to-implement-f1-score-in-lightgbm-for-multi-class-classification-in-r
Question: <p>I'm trying to make an image classification model that outputs a prediction based on a sliding window. The only way to do that is to have the network's output layer as a Conv2D layer.</p> <p>Here is my model architecture:</p> <pre><code>inputs = Input((None, None, 3)) x = Conv2D(filters = 32, kernel_size =...
https://stackoverflow.com/questions/66446915/how-to-implement-image-classification-using-just-convolutional-layers
Question: <p>I am building a simple machine learning model that takes bank transactions as input (see features below) and I want to predict the spend category (label). I have already worked through some beginner's tutorials, such as <a href="https://developers.google.com/machine-learning/crash-course/" rel="nofollow no...
https://stackoverflow.com/questions/57001614/tensorflow-implementation-for-bank-transaction-classification
Question: <p>trying to write focal loss for multi-label classification </p> <pre><code>class FocalLoss(nn.Module): def __init__(self, gamma=2, alpha=0.25): self._gamma = gamma self._alpha = alpha def forward(self, y_true, y_pred): cross_entropy_loss = torch.nn.BCELoss(y_true, y_pred) ...
https://stackoverflow.com/questions/57635169/implementation-of-focal-loss-for-multi-label-classification
Question: <p>I want to implement text classification with Naive Bayes algorithm in MATLAB. I have for now 3 matrices:</p> <ol> <li>Class priors (8*2 cell - 8 class names, for each class its % from the training) </li> <li>Training Data: word count matrices - (15000*9 cell- for each class, counting of every feature (wo...
https://stackoverflow.com/questions/27562711/implementation-of-text-classification-in-matlab-with-naive-bayes
Question: <p>I am doing a long text classification task, which has more than 10000 words in doc, I am planing to use Bert as a paragraph encoder, then feed the embeddings of paragraph to BiLSTM step by step. The network is as below:</p> <blockquote> <p>Input: (batch_size, max_paragraph_len, max_tokens_per_para,embeddin...
https://stackoverflow.com/questions/58703885/how-to-implement-network-using-bert-as-a-paragraph-encoder-in-long-text-classifi
Question: <p>I'm very new to neural networks, and decided to try implementing a basic one using Neuroph in Java to perform multiclass classification using Multilayer Perceptron.</p> <pre><code>public static void main(String[] args) { final MultiLayerPerceptron neuralNetwork = new MultiLayerPerceptron(2, 3, 3, 3...
https://stackoverflow.com/questions/74893033/implementing-a-basic-neural-network-to-perform-classification-with-neuroph
Question: <p>I am trying to understand Negation feature in NLP , so I thought to implement it. I am working on imdb movie review dataset. Consider I am having data as follows-</p> <pre><code>Movie was great but it's overly sentimental and at times terribly mushy , not to mention very manipulative but great action </co...
https://stackoverflow.com/questions/27818607/how-to-implement-negation-features-in-svm-classification-nlp-using-imdb-movie
Question: <p><a href="https://i.sstatic.net/4mKZ5.png" rel="nofollow noreferrer">enter image description here</a>I have an excel file, the rows in it represent each day, a total of 365 days, each column represents a region, a total of 2310 regions, and the content is the temperature of each day. Now I want to use 1° as...
https://stackoverflow.com/questions/70520090/use-pandas-to-implement-data-classification
Question: <p>I am new to this and would like to know how should I implement a classification problem for my EEG application. I did some digging and found that the traditional machine learning methods based on EEG signal always consider the features of the time-domain and/or frequency-domain. Similarly, I have the frequ...
https://stackoverflow.com/questions/63042214/how-to-implement-a-classification-problem-in-deep-learning-for-an-eeg-applicatio
Question: <p>I have written Percentron example in Python from <a href="https://www.youtube.com/watch?v=ntKn5TPHHAk" rel="nofollow noreferrer">here</a>. </p> <p>Here is the complete code </p> <pre><code>import matplotlib.pyplot as plt import random as rnd import matplotlib.animation as animation NUM_POINTS = 5 LEANIN...
https://stackoverflow.com/questions/45258144/classification-perceptron-implementation
Question: <p>I have a use case to predict the Multi Class labeled value. I have basic doubts in data preparation using Pyspark Implementation.</p> <p>Let say I have the below dataset:</p> <pre><code>A B C Label 10 class1 Boy Cricket 12 class3 Boy Football 11.6 class2 Girl Hockey .. .. ...
https://stackoverflow.com/questions/45161978/pyspark-classification-implementation
Question: <p>I'm trying to write the code for K-NN classification using k-d tree without using any libraries. So far I have been able to write the code for k-d tree but I cant seem to understand how do I find the k nearest neighbors once the tree has been formed from a training set. k-d tree code:</p> <pre><code>#inc...
https://stackoverflow.com/questions/54632821/how-to-implement-k-nn-classification-from-a-k-d-tree
Question: <p>I am struggling with implementing classification usecase using the <code>BertSentenceEmbeddings</code> in python. Mostly I get <code>classNotFoundError</code> and I think I am unable to figure out the right versions of libraries (spark-nlp, pyspark). I followed most of options suggested on web but had no l...
https://stackoverflow.com/questions/65236746/sparknlp-text-classification-using-bertsentenceembeddings
Question: <p>I am looking to implement the multivariate normal PDF [ <a href="http://en.wikipedia.org/wiki/Multivariate_normal_distribution#Density_function" rel="nofollow">1</a> ] in C++ to assign each pixel in an image membership of a class, i.e.</p> <pre><code> for each pixel for each class c...
https://stackoverflow.com/questions/17282956/implement-multivariate-normal-pdf-in-c-for-image-classification
Question: <p>I have a multiclass classification task, and I have tried to use 'trainSoftmaxLayer' in Matlab, but it's a CPU implementation version, and is slow. So I tried to read the documentation for a GPU option, like 'trainSoftmaxLayer('useGPU', 'yes')' in traditional neural network, but there isn't any related opt...
https://stackoverflow.com/questions/35809904/is-there-a-gpu-implementation-multiclass-classification-function-in-matlab
Question: <p>What exactly is open set classification in data mining? Is it a synonym or another word for one of these classification types?</p> <p>-Binary Classification <br> -Multi-Class Classification <br> -Multi-Label Classification <br> -Imbalanced Classification</p> <p>I have been browsing the web for a while but ...
https://stackoverflow.com/questions/67326572/what-is-open-set-classification-in-data-mining
Question: <p>I am trying to build a classification system, that takes pairs of images as input and output {0 or 1} if image B is sub-category of image A.</p> <p>Below are some examples of the data.</p> <ul> <li>Input: Image A [Apple Tree] &amp; Image B [Apple] | Output: [1]</li> <li>Input: [Orange Tree] &amp; [Orange] ...
https://stackoverflow.com/questions/67857508/how-to-implement-asymmetric-relationship-in-machine-learning-classification-algo
Question: <p>I am trying to implement Classification algorithm for Iris Dataset (Downloaded from Kaggle). In the Species column the classes (Iris-setosa, Iris-versicolor , Iris-virginica) are in sorted order. How can I stratify the train and test data using Scikit-Learn?</p> Answer: <p>If you want to shuffle and split...
https://stackoverflow.com/questions/60530673/how-to-stratify-the-training-and-testing-data-in-scikit-learn
Question: <p>I am new in machine learning and in scikit-learn. I started to use it in order to classify different datasets. For that I started applying scikit-learn's SVC with <a href="http://pastebin.com/wxSLhEsB" rel="nofollow">this dataset</a>, It's a huge JSON with this a structure similar to this:</p> <pre><code>...
https://stackoverflow.com/questions/31211026/scikit-learn-svm-implementation-i-obtain-a-perfect-classification
Question: <p>I am trying to train a model for real disaster tweets prediction(Kaggle Competition) using the Hugging face bert model for classification of the tweets.</p> <p>I have followed many tutorials and have used many models of bert but none could run in COlab and thros the error</p> <p>My Code is: </p> <pre><c...
https://stackoverflow.com/questions/62370354/implementing-huggingface-bert-using-tensorflow-fro-sentence-classification
Question: <p>I'm trying to implement the binary classification example using the IMDb dataset in <strong>Google Colab</strong>. I have implemented this model before. But when I tried to do it again after a few days, it returned a <code>value error: 'Object arrays cannot be loaded when allow_pickle=False'</code> for the...
https://stackoverflow.com/questions/55890813/how-to-fix-object-arrays-cannot-be-loaded-when-allow-pickle-false-for-imdb-loa
Question: <p>i have 8 feature from a mat file each of this feature divided 4 part (X_train , Y_train , X_test,Y_test) for 10 times randomly obtained this parameter now i should classify this feature according KNN my code is here</p> <pre><code> kk=7; bb=1; mdl1= ClassificationKNN.fit([X1_trai...
https://stackoverflow.com/questions/33930897/knn-classification-10-fold-implement-and-sorting
Question: <p>Basically I am trying to predict Age, Gender and Race from <a href="https://susanqq.github.io/UTKFace/" rel="nofollow noreferrer">UTKFace dataset</a> by building multilabel classification model using Tensorflow and Keras. This is what my preprocessed dataset looks like . I have couple of questions here</p>...
https://stackoverflow.com/questions/66852823/how-to-implement-multilabel-classification-on-utkface-dataset-using-tensorflow-a
Question: <p>I am new to opencv and trying to implement image matching between two images. For this purpose, I'm trying to understand the difference between feature descriptors, descriptor extractors and descriptor matchers. I came across a lot of terms and tried to read about them on the opencv documentation website b...
https://stackoverflow.com/questions/14808429/classification-of-detectors-extractors-and-matchers
Question: <p>Ive already created a clustering and saved the model but im confused what should i do with this model and how to use it as a feature for classification. This clustering is based on the coordinate of a crime place. after the data has been clustered, i want to use the clustered model as features in SVM.</p> ...
https://stackoverflow.com/questions/70532307/how-to-implement-kmeans-clustering-as-a-feature-for-classification-techniques-in
Question: <p>I am using <a href="https://github.com/mindsdb/mindsdb" rel="nofollow noreferrer">MindsDB</a> to do a zero-shot classification using the <code>facebook/bart-large-mnli</code> model and the web store data I have in a MongoDB instance. MindsDB documentation only explains how to achieve this using SQL, but I ...
https://stackoverflow.com/questions/75522060/how-can-i-implement-zero-shot-classification-using-mindsdb-and-mql-for-my-mongo
Question: <p>I am new to python and working on the multi-class text classification of contract documents of the construction industry. I am facing problems in the implementation of n-grams in my code which I produced form by getting help from different online sources. I want to implement unigram, bi-gram, and tri-gram ...
https://stackoverflow.com/questions/55555159/implementation-of-n-grams-in-python-code-for-multi-class-text-classification
Question: <p>I need to implement multiple classification classifier using Liblinear. Accord.net machine learning framework provides all of Liblinear properties except the Crammer and Singer’s formulation for multi-class classification. <a href="http://crsouza.com/2014/12/liblinear-algorithms-in-c/" rel="nofollow">This ...
https://stackoverflow.com/questions/29619258/multiple-classification-using-liblinear-in-accord-net-framework
Question: <p>I'm working on developing a wake word model for my AI assistant. My model architecture includes an LSTM layer to process audio data, followed by a Linear Layer. However, I'm encountering an unexpected output shape from the Linear Layer, which is causing confusion.</p> <p>After passing the LSTM output (shap...
https://stackoverflow.com/questions/71565894/implementing-binary-classification-for-lstm-and-linear-layer-output
Question: <p>I am trying to implement a CNN network + LSTM to be able to predict 4 different classes based on the sequence of x-ray images, which were preprocessed to 150x150x3 shape. My X-train shape is (4067, 150, 150, 3). When I am executing the code <strong>model.fit()</strong>, i am getting the error.</p> <pre><co...
https://stackoverflow.com/questions/73161256/cnn-lstm-implementation-error-for-image-classification
Question: <p>I have to write classifier for corpus of texts, which should separate all my texts into 2 classes. The corpus is very large (near 4 millions for test, and 50000 for study). But, what algorithm should I choose?</p> <ul> <li>Naive Bayesian</li> <li>Neural networks</li> <li>SVM</li> <li>Random forest</li> <l...
https://stackoverflow.com/questions/20766487/best-method-to-implement-text-classification-2-classes
Question: <p>I have a dataset that is similar to the one where we have movie plots and their genres. The number of classes is around 100. What algorithm should I choose for this 100 class classification? The classification is multi-label because 1 movie can have multiple genres Please recommend anyone from the followin...
https://stackoverflow.com/questions/58990776/i-want-to-implement-a-machine-learning-or-deep-learning-model-for-text-classific
Question: <p>I'm using Weka's J48 (C4.5) decision tree classifier. In general for a decision tree, can a classification probability distribution be determined once you hit a leaf? I know with Naive Bayes, each classification attempt produces a classification distribution.</p> <p>If it is possible with a decision tree,...
https://stackoverflow.com/questions/11854710/c4-5-decision-tree-classification-probability-distribution
Question: <p>I have a dataset where some objects (15%) belong to different classes and have a property value for each of those classes. How can I make a model that predicts multi-label or multi-class and then make a regression prediction based on the output of the classifier? I also need to output the probabilities for...
https://stackoverflow.com/questions/78572569/how-can-i-implement-regression-after-multi-class-multi-label-classification
Question: <p>I'm doing image classification with cudaconvnet with Daniel Nouri's noccn module, and want to implement data augmentation by taking lots of patches of an original image (and flipping it). When would it be best for this to take place?</p> <p>I've identified 3 stages in the training process when it could:<b...
https://stackoverflow.com/questions/22050186/implementation-of-data-augmentation-for-image-classification-with-convolutional
Question: <p>There are very complicated examples on the Internet. I couldn't apply them to my code. I have a data set consisting of 14 independent and one dependent variables. I'm making classification with R. Here is my code:</p> <pre><code>dataset &lt;- read.table(&quot;adult.data&quot;, sep = &quot;,&quot;, na.strin...
https://stackoverflow.com/questions/47883541/how-can-i-implement-roc-curve-analysis-for-this-naive-bayes-classification-algor
Question: <p>I have implemented an example of classifying cats and dogs using cnn. You can get the code from <a href="https://github.com/venkateshtata/cnn_medium./tree/master" rel="nofollow noreferrer">here</a> and <a href="https://becominghuman.ai/building-an-image-classifier-using-deep-learning-in-python-totally-from...
https://stackoverflow.com/questions/53041396/implementing-image-classification-in-rnn
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 have implemented CNN in both Keras and Pytorch for a multi-label text classification task. Two implementations ended with two very different performances. CNN with Keras is noticeable outperform the CNN with Pytorch. Both used one layer CNN with kernel size 4.</p> <p>The Pytorch version scores <strong>0...
https://stackoverflow.com/questions/61737314/big-performance-difference-between-pytorch-and-keras-implementation-in-text-clas
Question: <p>I am developing an android news app that should extract specific news topics from the web then make further classification to group news articles in categories using naive Bayes classification, any body know how to implement it in Android or even in Java ? </p> Answer: <p>You could try finding an <a href=...
https://stackoverflow.com/questions/33456621/using-naive-bayes-classification-on-android
Question: <p>This is my understanding of OvO versus OvA: One versus One is binary classification like Banana versus Orange. One versus All/Rest classification turns it into multiple different binary classification problems. My implementation in python for these 2 strategies yield very similar results :</p> <p><strong>...
https://stackoverflow.com/questions/58481324/one-versus-one-and-one-versus-all-multiclass-classification-using-logistic-regre
Question: <p>In the <a href="https://www.tensorflow.org/versions/r0.10/tutorials/mnist/beginners/index.html" rel="noreferrer">tensorflow MNIST tutorial</a> the <code>mnist.train.next_batch(100)</code> function comes very handy. I am now trying to implement a simple classification myself. I have my training data in a nu...
https://stackoverflow.com/questions/40994583/how-to-implement-tensorflows-next-batch-for-own-data
Question: <p>I am working on a deep learning model using <strong>Google's TensorFlow</strong>. The model should be used to <strong>segment and label scenes</strong>. </p> <ol> <li>I am using the <strong>SiftFlow dataset</strong> which has <em>33 semantic classes</em> and <em>images with 256x256 pixels</em>. </li> <li...
https://stackoverflow.com/questions/35317029/how-to-implement-pixel-wise-classification-for-scene-labeling-in-tensorflow
Question: <p>I an trying implement both classification problem and the regression problem with Keras tuner. here is my code for the regression problem:</p> <pre><code> def build_model(hp): model = keras.Sequential() for i in range(hp.Int('num_layers', 2, 20)): model.add(layers.Dense(units...
https://stackoverflow.com/questions/72935023/hyperparameters-tuning-with-keras-tuner-for-classification-problem
Question: <p>This is a general question. Are there classifiers in R -- functions that perform classification implementing classification algorithms-- that accept as input argument the relative cost of misclassification. E.g. if a misclassification of a positive to negative has cost 1 the opposite has cost 3.</p> <p>I...
https://stackoverflow.com/questions/44548414/is-there-a-way-to-inform-classifiers-in-r-of-the-relative-costs-of-misclassifica
Question: <p>I am looking to implement with Spark, a multi label classification algorithm with multi output, but I am surprised that there isn’t any model in Spark Machine Learning libraries that can do this.</p> <p>How can I do this with Spark ?</p> <p>Otherwise Scikit Learn Logistic Regresssion support multi label ...
https://stackoverflow.com/questions/39167288/spark-multi-label-classification
Question: <p>I tried to implement the k Nearest Neighbour classification algorithm for images in Python, here is my code<br> <pre><code> def classifyImage(self, RGBAValsForOneImage, kVal): redMaster = RGBAValsForOneImage[0] greenMaster = RGBAValsForOneImage[1] blueMaster = RGBAV...
https://stackoverflow.com/questions/42764141/how-can-i-increase-the-efficiency-of-my-python-implementation-for-the-k-nearest
Question: <p>I'm trying to use the Tensorflow's CTC implementation under contrib package (tf.contrib.ctc.ctc_loss) without success. </p> <ul> <li>First of all, anyone know where can I read a good step-by-step tutorial? Tensorflow's documentation is very poor on this topic.</li> <li>Do I have to provide to ctc_loss the...
https://stackoverflow.com/questions/38059247/using-tensorflows-connectionist-temporal-classification-ctc-implementation
Question: <p>How to use the fine-tuned bert pytorch model for classification (CoLa) task?</p> <p>I do not see the argument <code>--do_predict</code>, in <code>/examples/run_classifier.py</code>. </p> <p>However, <code>--do_predict</code> exists in the original implementation of the Bert.</p> <p>The fine-tuned model ...
https://stackoverflow.com/questions/56151673/how-to-use-run-classifer-py-an-example-of-pytorch-implementation-of-bert-for-cla
Question: <p>I am trying to implement a hierarchical transformer for document classification in Keras/tensorflow, in which:</p> <p>(1) a word-level transformer produces a representation of each sentence, and attention weights for each word, and,</p> <p>(2) a sentence-level transformer uses the outputs from (1) to produ...
https://stackoverflow.com/questions/62825520/hierarchical-transformer-for-document-classification-model-implementation-error
Question: <p>I have a multiclass(108 classes) classification model which I want to apply transfer learning to the classification layer. I want to deploy this model in a low computing resource device (Raspberry Pi) and I thought to implement the classification layer in pure numpy instead of using Keras or TF. Below is m...
https://stackoverflow.com/questions/74951226/keras-classification-model-with-pure-numpy-classification-layer
Question: <p>Based on my former <a href="https://stackoverflow.com/questions/33945984/r-how-to-create-multiple-maps-rworldmap-using-apply">question</a> answered by @Andy, I wanted to have different classification intervals per map using Jenks natural breaks. For this I use the library <code>classInt</code>, which works...
https://stackoverflow.com/questions/34472450/r-how-to-create-multiple-maps-rworldmap-with-different-classification-borders
Question: <p>Suppose I have some set of input outputs like below:</p> <pre><code>input1 : [0 1 1 1 0 ... 1] output1 : [1 2 2 3 ... 3 3 1 2 2] ... </code></pre> <p>the inputs are always <strong>0 or 1</strong> and the outputs are always <strong>1 or 2 or 3</strong></p> <p>how can I create a neural network in keras that...
https://stackoverflow.com/questions/62747053/how-can-i-implement-a-multiclass-multilabel-classification-in-keras
Question: <p>I have created a simple neural network (Python, Theano) to estimate a persons age based on their spending history from a selection of different stores. Unfortunately, it is not particularly accurate.</p> <p>The accuracy might be hurt by the fact that the network has no knowledge of ordinality. For the net...
https://stackoverflow.com/questions/38375401/neural-network-ordinal-classification-for-age
Question: <p>I am looking to implement multilabel classification using ML.NET. I read few posts which say it is not possible directly but rather through problem transformation by converting it into multiple binary classification problems. So essentially I will be required to create <code>n</code> classifier if my datas...
https://stackoverflow.com/questions/67411717/multilabel-classification-in-ml-net
Question: <p>I'm studying Support Vector Machine last few weeks. I understand the theoretical concept how I can classify a data into two classes. But its unclear to me how to select support vector and generate separating line to classify new data using C++.</p> <p>Suppose, I have two training data set for two classes<...
https://stackoverflow.com/questions/27501444/implementation-of-svm-for-classification-without-library-in-c
Question: <p>Currently, I am trying to implement attention mechanism to (sequence frame) video classification. So I am implementing the attention between CNN (feature extraction) -> attention -> LSTM (classification to specific class). I followed two papers for the implementation: "Action Recognition using visual atten...
https://stackoverflow.com/questions/57493402/add-attention-mechanism-to-classification-problem
Question: <p>I am trying H2O AutoML for multi-class classification. Everything seems to be working fine except when I am trying to extract the variable importance from metalearner for the StackedEnsemble.</p> <p>This is what I am getting from code:</p> <pre><code># Get the &quot;BestOfFamily&quot; Stacked Ensemble mode...
https://stackoverflow.com/questions/57149718/problem-with-metalearner-for-multi-class-classification-in-h2o-automl-3-24-0
Question: <p>I am using weka library for implementing classification algorithms in android, Though Weka lib is not fully compatible with android , I am using <a href="https://github.com/rjmarsan/Weka-for-Android" rel="nofollow noreferrer">Weka For Android</a> as lib in my app. But its taking too much time for building ...
https://stackoverflow.com/questions/24505823/android-weka-classification-is-taking-too-much-time
Question: <p>Is it possible to use Conditional Random Field for MultiLabel Classification? I saw a python CRF implementation at <a href="https://pystruct.github.io/user_guide.html" rel="noreferrer">https://pystruct.github.io/user_guide.html</a>, but couldn't figure a way to do multilabel classification.</p> Answer: <p...
https://stackoverflow.com/questions/37531532/multilabel-classification-using-conditional-random-field
Question: <p>I am trying to implement multi-class classification using the <a href="https://github.com/GoogleCloudPlatform/cloudml-samples/tree/master/flowers" rel="nofollow noreferrer">cloud samples github</a>.It was a classification model and i have to alter the code.I found some suggestion to change the final layer ...
https://stackoverflow.com/questions/52783281/how-to-convert-to-a-multi-class-classification-model
Question: <p>I am attempting to solve four different differential equations. After googling and researching I was able to finally understand how the solver works but I can't get this problem specifically to run correctly. Code compiles but the graphs are incorrect. </p> <p>I think the problem lies in the volume expres...
https://stackoverflow.com/questions/46406222/python-solving-differential-equations
Question: <p>How do I solve the differential equation y'+y=t with y(0)=24?</p> <p>Do I need to defined the differential equation with a file in the form .m?</p> Answer: <p>To solve ordinary differential equations you've got the function lsode (run lsode for help).</p> <pre><code>f = @(y,t) t-y; t = linspace(0,5,50)'...
https://stackoverflow.com/questions/23186185/octave-to-solve-differential-equations
Question: <p>I'm lerning to solve Differential equation using (scipy.integrate.odeint) and (scipy.integrate.ode). I have a simple example:</p> <p><code>dy/dt=f[i]*t</code></p> <p>and f is parameter corresponding to t[i], same like the example in code ; i.e. </p> <p><code>t[0]=0.0, f[0]=0.0</code></p> <p><code>t[1]=...
https://stackoverflow.com/questions/35386600/solve-differential-equation-with-iterated-parameter
Question: <p>I'm trying to solve a system with three differential equations with the function ode45 in Matlab. I do not really understand the errors i am getting and i could use some help understanding what im doing wrong.</p> <p>The differential equations are the following:</p> <pre><code>F1 = -k1y1+k2(y2-y1) F2 = -...
https://stackoverflow.com/questions/16449166/solving-differential-equations-in-matlab-ode45
Question: <p>I am trying to build a code for chemical reactor design which is able to solve for the pressure drop, conversion, and temperature of a reactor. All these parameters have differential equations, so i tried to define them inside a function to be able to integrate them using ODEINT. However it seems that the ...
https://stackoverflow.com/questions/65436977/trying-to-solve-differential-equations-simultaneously
Question: <p>I have the following differential equation that I would like to solve with SymPy</p> <p><a href="https://i.sstatic.net/bYuJG.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/bYuJG.png" alt="enter image description here"></a></p> <p>This differential equation has the implicit solution (with ...
https://stackoverflow.com/questions/45308747/solve-differential-equation-with-sympy
Question: <p>I've been working with sympy and scipy, but can't find or figure out how to solve a system of coupled differential equations (non-linear, first-order). </p> <p>So is there any way to solve coupled differential equations? </p> <p>The equations are of the form:</p> <pre><code>V11'(s) = -12*v12(s)**2 v22'...
https://stackoverflow.com/questions/16909779/any-way-to-solve-a-system-of-coupled-differential-equations-in-python
Question: <p>I am working on a heat exchanger and found these differential equations from a paper. I never had such equation as you can see even if it's a single order differential equation a term "dy" is always hanging at right side of the equation.</p> <p>I am trying to solve them in matlab but due to dy, I am not a...
https://stackoverflow.com/questions/39543756/how-to-solve-these-differential-equations
Question: <p>I am working on a project (C# and .NET Framework) which requires me to solve some partial differential equations. Are there any specific libraries based on .NET Framework that I could see and make my work simpler?</p> <p>I have worked with MATLAb and solving partial differential equations is very straight...
https://stackoverflow.com/questions/1452255/solving-partial-differential-equations-using-c
Question: <p>I'm trying to solve this numerical differential equations, can someone help? <img src="https://i.sstatic.net/3Qtwf.png" alt="pic of the differential equations" /></p> <pre><code>clc; clear; syms A1(z) A2(z) lamda1 = 1560*(10^-9); c=3*(10^8); d_eff=27*(10^-12); omga1=(2*pi*c)/(lamda1); omga2=omga1*2; n=2.2;...
https://stackoverflow.com/questions/74961611/matlab-solving-numerical-differential-equations-pic
Question: <p>I want to solve the 7 differential equations which are functions of time for the 7 unknowns. I wanted to find the solutions of the equations:</p> <pre><code>eo(t)=f1(e_0(t),e_1(t),e_2(t),e_3(t),w_1(t),w_2(t),w_3(t)) e1(t)=f2(e_0(t),e_1(t),e_2(t),e_3(t),w_1(t),w_2(t),w_3(t)) e2(t)=f3(e_0(t),e_1(t),e_2(t),e...
https://stackoverflow.com/questions/31263825/solving-differential-equations-with-7-unknowns
Question: <p>I have to find next state of my robot which can be found though solving differential equations. In MATLAB i used ode45 function and on c++ i found on internet that i have to use some method like stepper runga kutta dopri5. I tried to understand its implementation and somehow got an idea. Now my states are ...
https://stackoverflow.com/questions/58036187/solving-differential-equation-using-boost-libraries
Question: <p>I've just started to use Python for scientific drawing to plot numerical solutions of differential equations. I know how to use modules to solve and plot single differential equations, but have no idea about systems of differential equation. How can I plot following coupled system?</p> <p>My system of dif...
https://stackoverflow.com/questions/50552094/how-to-solve-three-quadratic-differential-equations-in-python
Question: <p>I'm looking for way to solve this differential equations. </p> <p><img src="https://i.sstatic.net/TVpfw.png" alt="equations"></p> <p>I've got small experience solving this type of equations, so here's my noob code</p> <pre><code>function lab1() [t,h]=ode45('threepoint', [0 1000], [0 0.25]); plot(t, h); ...
https://stackoverflow.com/questions/37668362/error-while-solving-differential-equations-matlab
Question: <p>I'm working with a DE system, and I wanted to know which is the most commonly used python library to solve Differential Equations if any.</p> <p>My Equations are non Linear First Order equations.</p> Answer: <p>If you need to solve large nonlinear systems (especially stiff ones), the scipy tools will be ...
https://stackoverflow.com/questions/5847201/differential-equations-in-python
Question: <p>I am trying to solve following differential equation using python package PyDDE:</p> <pre><code>dy[i]/dt = w[i] + K/N * \sum{j=1toN} sin(y[j] -y[i]), where i = 1,2,3,4...N=50 </code></pre> <p>Below is the python code to solve this equation</p> <pre><code>from numpy import random, sin, arange, pi, array,...
https://stackoverflow.com/questions/25926957/solve-differential-equation-using-python-pydde-solver
Question: <p>I must solve the Euler Bernoulli differential beam equation which is:</p> <pre><code>w’’’’(x) = q(x) </code></pre> <p>and boundary conditions:</p> <pre><code>w(0) = w(l) = 0 </code></pre> <p>and </p> <pre><code>w′′(0) = w′′(l) = 0 </code></pre> <p>The beam is as shown on the picture below:</p> <p><...
https://stackoverflow.com/questions/48060894/euler-beam-solving-differential-equation-in-python
Question: <p>I haven't been able to find particular solutions to this differential equation.</p> <pre><code>from sympy import * m = float(raw_input('Mass:\n&gt; ')) g = 9.8 k = float(raw_input('Drag Coefficient:\n&gt; ')) v = Function('v') f1 = g * m t = Symbol('t') v = Function('v') equation = dsolve(f1 - k * v(t) -...
https://stackoverflow.com/questions/38950163/solving-differential-equation-sympy
Question: <p>I have to solve this couple of differential equations</p> <pre><code>dxdt = a - b*x*z dydt = c*y*exp(-E) dzdt = dxdt - sum(dydt*dE) </code></pre> <p>with a, b and c constants and E an array.</p> <p>As you can see, I need to process an integration over E to determine dzdt. Thus, dydt is an array also.<...
https://stackoverflow.com/questions/54689574/solve-couple-of-differential-equations-using-python
Question: <p>I would like to solve a system of differential equations with parameters varying over intervlas.</p> <p>Here is my code:</p> <pre><code># LOADING PACKAGES library(deSolve) # DATA CREATION t1 &lt;- data.frame(times=seq(from=0,to=5,by=0.1),interval=c(rep(0,10),rep(1,20),rep(2,21))) length(t1[which(t1$...
https://stackoverflow.com/questions/39747767/solving-differential-equations-with-parameters-varying-over-intervals
Question: <p>The <strong>main</strong> function runs a loop that feeds vector values to a serie of sequentially interdependent differential equations found in another function <strong>gate_probabilities</strong>, which feeds back the calculations to main and the loop repeats.</p> <p>The solutions for the equations are...
https://stackoverflow.com/questions/46287315/solving-differential-equations-on-c
Question: <p>I want to solve this differential equations with the given initial conditions:</p> <pre><code>(3x-1)y''-(3x+2)y'+(6x-8)y=0, y(0)=2, y'(0)=3 </code></pre> <p>the ans should be <br><br> <code>y=2*exp(2*x)-x*exp(-x)</code></p> <p>here is my code:</p> <pre><code>def g(y,x): y0 = y[0] y1 = y[1] ...
https://stackoverflow.com/questions/27820725/how-to-solve-differential-equation-using-python-builtin-function-odeint
Question: <p>For a homework assignment, my professor asked us to solve a system of differential equations using MATLAB. Using the mathworks website, I did</p> <pre><code>syms f(t) g(t) h(t) [f(t), g(t), h(t)] = dsolve(diff(f) == .25*g*h,... diff(g) == -2/3*f*h,... diff(h) == .5*f*g, f(0) == 1, g(0) == -2, h(0) == 3) <...
https://stackoverflow.com/questions/28802527/how-to-solve-a-system-of-differential-equations
Question: <p>I am trying to solve a differential equation and I get this following error</p> <pre><code>/usr/local/lib/python3.7/dist-packages/scipy/integrate/odepack.py in odeint(func, y0, t, args, Dfun, col_deriv, full_output, ml, mu, rtol, atol, tcrit, h0, hmax, hmin, ixpr, mxstep, mxhnil, mxordn, mxords, printmessg...
https://stackoverflow.com/questions/69786953/solving-a-system-of-differential-equations-by-scipy-integrate-odeint
Question: <p>I'm trying to write a java program that will solve any ordinary differential equations using Euler method, but I don't know how to write a code to get any differential equation from the user. I was only able to write the code to solve a predefined ordinary differential equations. </p> <p>I was able to com...
https://stackoverflow.com/questions/55960894/solving-ordinary-differential-equations-using-euler-in-java-programming
Question: <p>This python code can solve one non- coupled differential equation:</p> <pre><code>import numpy as np import matplotlib.pyplot as plt import numba import time start_time = time.clock() @numba.jit() # A sample differential equation &quot;dy / dx = (x - y**2)/2&quot; def dydx(x, y): return ((x - y**2...
https://stackoverflow.com/questions/63811138/solving-system-of-coupled-differential-equations-using-runge-kutta-in-python
Question: <p>I do have three differential equations of the form:</p> <pre><code>dx/dt= (-K1*x) dI/dt= ((K1*(x) - (K2*I**2))/2) dm/dt= 0.5*(K2*I**2) </code></pre> <p>I have data for time, x, I and m, with respect to time. How to calculate K1 and K2 using available packages in python? Can anyone help me with a sample c...
https://stackoverflow.com/questions/60561147/how-to-solve-differential-equations-simultaneously-using-python
Question: <p>I am new to C programming and am writing a program to solve simple differential equations which gives output as the value of x. But I'm not getting the correct result.</p> <p>I am getting the correct value of the equation, but the value of the differential equation is wrong. The code compiles without any ...
https://stackoverflow.com/questions/56919237/wrong-answer-while-solving-differential-equation-in-c
Question: <p>I'm super new to this and I couldn't really find any help online, so sorry if this has been answered before. I tried to follow this simple example on ordinary differential equations</p> <pre><code>using DifferentialEquations f(t,u) = 1.01*u u0=1/2 tspan = (0.0,1.0) prob = ODEProblem(f,u0,tspan) sol = solve...
https://stackoverflow.com/questions/65344695/differential-equation-solve-not-working-julia
Question: <p>I am trying to solve a similar problem to this one: <a href="https://stackoverflow.com/questions/58895739/solving-differential-equations-in-matlab">Solving Differential Equations in Matlab</a></p> <p>However, this time the scenario is not injection of a drug into the subcutaneous tissue and its subsequent...
https://stackoverflow.com/questions/59101142/solving-differential-equations-in-matlab-in-vitro-dissolution
Question: <p>System of equations</p> <pre><code>def SEIRD_gov(y, t, beta_0, c_1, c_2, sigma, gamma, dr, ro, tg, g_1, g_2, ind): S, E, I, R, D = y dSdt = -beta_gov(t, beta_0, c_1, c_2, tg, g_1, g_2, ind) * S * I/N dEdt = beta_gov(t, beta_0, c_1, c_2, tg, g_1, g_2, ind) * I * S/N - sigma * E dIdt = s...
https://stackoverflow.com/questions/67605649/solving-differential-equations-with-a-function-called-at-each-time-step
Question: <p>I am trying to solve equation systems, which contain algebraic as well as differential equations. To do this symbolically I need to combine dsolve and solve (do I?).</p> <p>Consider the following example: We have three base equations</p> <pre><code>a == b + c; % algebraic equation diff(b,1) == 1/C1*y(t);...
https://stackoverflow.com/questions/17701718/combining-solve-and-dsolve-to-solve-equation-systems-with-differential-and-algeb
Question: <p>I'm trying to solve a system of differential equations and find the trajectory of Sun and Jupiter. But I don't have a nice trajectory, only some points. Could you help? ("Soleil" means Sun)</p> <p><a href="https://i.sstatic.net/bafUV.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/bafUV.jpg...
https://stackoverflow.com/questions/59518547/solve-system-differential-equations-sun-and-jupiter-trajectories
Question: <p>i am a newbie to python. I have a simple differential systems, which consists of two variables and two differential equations and initial conditions <code>x0=1, y0=2</code>:</p> <pre><code>dx/dt=6*y dy/dt=(2t-3x)/4y </code></pre> <p>now i am trying to solve these two differential equations and i choose ...
https://stackoverflow.com/questions/34618488/solving-two-dimension-differential-equations-in-python-with-scipy