Questions tagged [evaluation]

Anything related to evaluation of expressions, i.e. the process used to determine the value of expressions in a running program.

0
votes
0answers
6 views

How to calculate the accuracy for multilabel classification with tf.metrics?

I want to train multilabel classification model with tensorflow (tf.estimator.Estimator). I need to output the accuracy when do evaluating. But it seem not work with the following code:accuracy=tf....
-2
votes
0answers
20 views

Substitution Model in Scheme Language

Assume that we have evaluated the following definition:(define fuzz (lambda (a b) (if (=b 0) a (/ 1 b))))Now, we would like to evaluate the expression (fuzz -1 0). I need to indicate the first ...
1
vote
1answer
25 views

R shiny app error message from formula argument to `lm`

I'm trying to build a shiny app using multiple linear regression that allows selecting more than one independent variables but currently stuck on a server-side (I guess). Data from here (table1_1)....
0
votes
0answers
20 views

Short circuiting pandas & operator with lazy evaluation to speed up row matching

I would like the below code to be evaluated more quickly.Suppose rule_instance=['#', 'dog', 'cat']instance=pd.DataFrame({'col1': ['Anything', 'Anything', 'Anything'], ...
0
votes
0answers
30 views

Pandas order of operation in & and | conditionals in short circuit evaluation [duplicate]

Is it safe to rely on condition evaluation order in if statements?The above question asks exactly what I would like to know but is the same true of Pandas & and | operator when performing ...
-1
votes
1answer
75 views

module 'sklearn.metrics' has no attribute 'davies_bouldin_score'

I am trying to evaluate a clustering kmeans model using sklearn.metrics.davies_bouldin_score. I am using google colab with runtime Python 3 and GPU accelerator.I got this error:module 'sklearn....
1
vote
1answer
32 views

How to sum up master current page and current row count in subreport?

In my JasperReport project using Jaspersoft Studio, I would like to create a column in my table that is the sum of the current page number (where the table is) and the current row number (starting ...
1
vote
1answer
21 views

Why we do not see an error when input (or #t (/ 1 0)) in Racket shell?

(or #t (/ 1 0))(/ 1 0) is illegle, but why we do not see an error?There's an explanation in my lecture note.The identifier or does not refer to a function, but rather asyntactic form that ...
0
votes
2answers
46 views

Why does a combined upper and lower bound comparison always evaluate to true? [duplicate]

Why does the first always evaluate to true? I would expect these two statements to behave identically. for (int i=0;i<4;++i) (0 < i < 3) ? cout << "True " : cout << "False ";...
0
votes
1answer
27 views

Nonstandard evaluation of list of variable names

I'm writing an estimation procedure in R loops through a list of variables names from a data.frame that the user declares. I'm trying to avoid requiring the user to enquote the variables to make their ...
1
vote
2answers
35 views

Operator “?” and operator AND evaluation

This evaluates to TRUE.$A=TRUE;$B=FALSE;$result=($A) AND ($B) ? true : false;Why is the evaluation giving true, and how exactly is the evaluation done step by step?Thanks
0
votes
1answer
32 views

How to calculate AvgD, RMSD, VOE, and VD evaluation metrics for segmentation results?

I am doing medical image segmentation and working on 3D images, and have two images one is ground truth (gt), and one the segmentation prediction results (segm), I need to calculate two other metrics ...
1
vote
0answers
51 views

Identifying the evaluation measures for unranked lists (set)

I have a dataframe as follows:Column 0 (0,1,2,3...) refers to document_ids40041,37962,37985... are ids representing objects related to the documents.For example, document_id 2 has related (truth) ...
1
vote
1answer
82 views

How can I use R^2 as an evaluation metric when modeling?

I am using Python to train an XGBoost Regressor on a 25 feature column dataset and SKlearn's GridSearchCV for parameter tuning. GridSearchCV allows you to choose your scorer with the 'scoring' ...
1
vote
2answers
37 views

In Kotlin, is it possible to use a variable to call a method or property?

Simply put, I have a variable that tells me which property I need to modify on an object, but cannot call that property AS the variable.data class MyDataClass(var one: String, var two: Int)fun ...
1
vote
1answer
37 views

What factors will lead to extremely high RMSE value in a regression model?

I was trying to build a regression model to predict movie box office. The dataset was acquired from Kaggle-TMDB 5000 Movie Dataset along with another dataset contains some social media related ...
0
votes
0answers
29 views

How to print the treebank of text file

I am working with StanfordCoreNLP and I want to evaluate the results for my real time dataset which is in normal text file https://drive.google.com/file/d/1Iiyb4vS4LLcL0UOagCiKwtQLfHgZZXog/view?usp=...
0
votes
2answers
41 views

Unable to Print the Complete Confusion Matrix in Python [duplicate]

I am building a image predicting model. To get the better picture of the accuracy I am printing a confusion matrix using scikit learn. When I was using 30 classes, the confusion matrix was ...
0
votes
0answers
7 views

How to run in .Net on evaluation.project.build a pre- or post-build-script

I've got an Visual Studio Solution (.sln) with a project (.csproj) and wants to build it with Microsoft.Build.Evaluation.Project.Build():var project=new Microsoft.Build.Evaluation.Project(filePath)...
0
votes
2answers
45 views

Converting data to code [closed]

In C, I'd like to make a macro called TEST() that takes a valid C arithmetic expression and prints and evaluates it. So as an example, if I were to give it TEST(5*2+3) it would print to console 5*2+3=...
2
votes
3answers
91 views

Python: How can I evaluate algebraic expressions with a logic algorithm?

I am new to programming and started a little project to get better.I want to do a not so basic shell calulator, the basic methods were quickly done and I learned a lot.But my new goal is it to ...
0
votes
0answers
11 views

selectional preference or semantic fit tasks for word-embeddings (word2vec)

I am trying to evaluate a word embedding created with word2vec. But I do not understand the intrinsic embedding task of selective preference (thematic fit). I understand that selective preference is ...
2
votes
1answer
25 views

How to use get() to construct a complicated model of variables

I know how to use get() to construct an model on the fly from a variable, for example:dvar="myResponse"ivar="someIndependentVariable"family="binomial"myGLM <- glm(data=ds, get(dvar) ~ get(ivar)...
-3
votes
3answers
272 views

How to make the C++ compiler to follow the same precedence, associativity and order of evaluation that C# has in the this assignment statement?

Consider the following piece of code:int x=1;int y=2;y=x + (x=y);When this runs in C#, the variables end up assigned with these values:x=2y=3On the other hand, when the same ...
0
votes
4answers
149 views

PHP - What is the difference between '!==false' and '==true'?

Sometimes I see people write conditional statements like this:if($var !==false) {...}Instead of like this:if($var==true) {...}These are the same, right?I see the former used much more ...
3
votes
3answers
85 views

OCaml evaluation of expression, order?

add is a function that is built in to OCaml.Exp:# add 5 1;;- : int=6My question: what is the order of evaluation for add 3 (add 5 3)?# add 3 (add 5 3);;- : int=11Is (add 5 3) evaluated ...
0
votes
0answers
42 views

Evaluating Generative Adversarial Networks(GANs) based on generator and discriminator loss

I was studying upon evaluation methods for GANs.I am not able to understand why loss functions used to train the discriminator and generator are not sufficient to evaluate the performance of GANs....
6
votes
1answer
93 views

mixing foldr with OR in Haskell (laziness?)

How can this function return true?foldr (||) False [True,undefined]=> TrueThe first fold looks like this:undefined || True , which should return an errorSo im guessing haskell gives ...
0
votes
1answer
19 views

Silhouette Coefficient of HAC if k=1

How to calculate value of Silhouette Coefficient of HAC clustering if k=1 (so, all data in 1 cluster)? Silhouette coefficient has range -1 until 1, but for singleton (k=maximum) (cluster that has only ...
0
votes
0answers
14 views

How do I use pandas to evaluate expressions within {}? (with key:value pair)

These are two example entries in my data frame, I want the output data frame to have column names ['phone','work_addr_state','work_addr_city','work_addr_district','home_addr_state','home_addr_city','...
-2
votes
1answer
57 views

How does c++ evaluate assignment operators (if statement)

Consider the followingint main() {int a=8;int b=10;while (true) {if (a /=2 && b < 12) {b++;std::cout << b << std::endl;...
3
votes
1answer
77 views

How to prevent form evaluation in lisp macros?

I'm trying to create a simple memo defun. How can I prevent evaluating of args form in this code?(defmacro defun/memo (name args &rest body)`(let ((memo (make-hash-table :test 'equalp)))...
0
votes
2answers
30 views

Python default arguments confusion

As I'm new to python I've started the topic of default argumentsAs per that of the definition I've understood that the default arguments are evaluated only once and that at the point of function ...
2
votes
1answer
54 views

R, data.table: Sum all columns whose names are stored in a vector

From a data.table d such as for examplerequire(data.table)d=data.table(a=1:4, b=11:14, c=21:24, group=c(1,1,2,2))I would like to sum all variables which names are stored in the vector ...
2
votes
1answer
34 views

R: How to go from a vector of strings to a vector of quotes / names?

How to get frominput=c("a", "b", "c")tooutput=c(quote(a), quote(b), quote(c))automatically?
2
votes
1answer
58 views

why deparse(substitute(x)) not picking the name of 'x'

I was wondering why deparse(substitute(x)) for my xlab does not put the name of x for xlab as expected (see picture below)?gg <- function(x, xlab=deparse(substitute(x)), ylab=NA, freq=FALSE,...
2
votes
2answers
167 views

Excel Array Evaluation and some tricks

I came across some array evaluation tricks on the net. But i couldn't understand the theory. I think there are many like me who want to know about this subject.what is array evaluation and why do we ...
1
vote
0answers
36 views

Evaluation of Dynamic Topic Models

I try to evaluate my dynamic topic models.The model were generated with the gensim wrappers.Are there any possible functions like perplexity or topic coherence equal to the "normal" topic modeling?
0
votes
1answer
367 views

Tensorflow: training and evaluation process

I am using Tensorflow to train my data-set (with Object-detection API) locally with 1080 Nvidia 8GB, I use create_pet_tf_record.py to generate TFRecords files. I don't train from scratch I use ...
0
votes
0answers
121 views

Negative Values: Evaluate Gensim LDA with Topic Coherence

I´m currently trying to evaluate my topic models with gensim topiccoherencemodel:from gensim.models.coherencemodel import CoherenceModelcm_u_mass=CoherenceModel(model=model1, corpus=corpus1, ...
2
votes
3answers
136 views

How to defer a macro substitution in a concatenate-stringify cascade

This is a follow-up question to this one (and also closer to the actual problem at hand).If I have the following case:#include <stdio.h>#define FOO_ONE 12#define FOO_TWO 34#define ...
1
vote
2answers
56 views

How to concatenate, evaluate and stringify macros?

I am trying to stringify the substitution (evaluation) of a macro concatenation. For example:#include <stdio.h>#define FOO_ONE 12#define FOO_TWO 34#define BAR_ONE 56#define BAR_TWO 78#...
1
vote
2answers
57 views

R get argument names from function call

I'd like to get argument names from function call:testFun <- function(x=1:20, z=list(a=1, b=2)) x %>% sin %>% sumgetArgNames <- function(value) {# function should return ...
0
votes
1answer
39 views

Quantifying the quality of predictions of the neural network python

Today i'd like to ask you some help with the quality of my neural network.I've been working with a project to predict parameters in metallurgy.To make sure that my neural network is going on the ...
1
vote
2answers
310 views

FDDB evaluation code

I'm studying opencv and dlib, for a face detector to use on a university project, and I'm really new at this whole thing of machine learning and computer vision. How can I use the evaluation code from ...
0
votes
1answer
43 views

Get values of parameters of javascript function from Java?

For my Java application I need to be able of, given a JavaScript string, determine the actual arguments passed into a function call. For example, given this JavaScript string:const url="http://...
0
votes
0answers
48 views

Loading string and evaluating it memory efficient python

I have a csv which has a column containing list of floats, which I evaluate with json.loads(). The problem is that the csv is very big. When I load the whole CSV it takes up to 40 GB of memory. ...
0
votes
0answers
21 views

DUC 2001 Dataset Result table missing 3 reference scores?

DUC 2001 Dataset result1_table has a lot of scores but all of the scores corresponds to Selector code(5th Column)=Model summarizer(6th column) (e.g. A-A, B-B etc). For which I can have Rouge ...
2
votes
1answer
3k views

How can I get Int value from Kotlin enum?

I have a enum like this:enum class States(value: Int) {STATE_A(1),STATE_B(2),STATE_C(3),STATE_D(4)}How can I get value of enum? For instance States.STATE_C should return 3.
4
votes
1answer
97 views

Default definitions of foldl' and foldr' seem weird

Default definitions of foldl' and foldr' seem weird. They have default definition as:class Foldable t where-- ...foldr' f z0 xs=foldl f' id xs z0where f' k x z=k $! f x z-- ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,