Questions tagged [interpretation]

An interpretation is an assignment of meaning to the symbols of a formal language.

Many formal languages used in mathematics, logic, and theoretical computer science are defined in solely syntactic terms, and as such do not have any meaning until they are given some interpretation. The general study of interpretations of formal languages is called formal semantics.

169 questions
2
votes
2 answers

Common Lisp backquote evaluation: delimiter and operator

How is it, that in `(1 ,(+ 1 1) (- 4 1) 4) ; '(1 2 (- 4 1) 4) the minus sign ("-") is not treated as an operator (but as a symbol; '- instead of #'- - correct?) (This part I think I understand.) But why is it, that the third left parenthesis is…
Emanuel Berg
  • 499
  • 4
  • 14
1
vote
2 answers

redirect every request to index.php and interpret the request

I'm using Apache 2.2 and PHP 5.3.8. How should I configure .htaccess to redirect every request do index.php? I'd like to have URLs like those of stackoverflow or facebook, as: http://mywebsite.com/fancypage where fancypage isn't a directory on the…
Valentino
  • 465
  • 6
  • 17
1
vote
0 answers

MGrammar and more than one valid interpretation

I think what I may have is the dangling else problem, but I'm not really sure. The language I'm tasked with writing needs to support multi-line if statements as well as single line i.e. if(conditions){ print "multi"; print…
user64718
  • 827
  • 3
  • 9
  • 22
1
vote
1 answer

How to get SHAP values for caret models in R?

I am trying to get SHAP values for my models (which I built using caret). I have an RF model, and the data is: data = structure(list(Main_Street = structure(c(2L, 3L, 2L, 1L, 3L, 2L, 3L, 1L, 2L, 2L), .Label = c("64", "70", "270"), class =…
1
vote
1 answer

xgb.importance in R some reference or articles?

I would like to understand how the "Gain" column is calculated with xgb.importance function in R and if there exist some scientific articles about that with convergence results for example (working well with correlated features, non linear link,…
Lolivano
  • 152
  • 6
1
vote
1 answer

Clingo interpretation

I am trying to interpret a clingo code for a sudoku and the last two lines confuse a lot. Is there anyone experienced with that, who can explain to me what I see? %same_line(X1,X2) :- value(X1), value(X2), (X1-1)/3 == (X2-1)/3. %:- sudoku(X1,Y1,N),…
Myrto.S
  • 11
  • 1
1
vote
2 answers

Is there any interpreter stage for eBPF programs?

I'm new to eBPF, as the tutorial suggests, eBPF is a runtime with a jit compiler. As far as I am concerned, the bytecode is just translated into native code in eBPF, so I wonder if there is any interpretation stage like JVM in eBPF?
Nicholas
  • 127
  • 1
  • 11
1
vote
1 answer

How to convert script into a hard coded version of it in Tcl language?

I am looking for a way to convert a script into its fully hard-coded version. I even don't know how this kind of function is named in software industry.. so I even don't know how to google it. Here are some examples of what I want. I don't want to…
Hun Heo
  • 11
  • 1
1
vote
1 answer

Fixed-effects coefficient interpretation

I ran a fixed-effects regression and I am not quite sure about the interpretation category which it belongs to (i.e. level-level and so on), due to a paper interpreting it differently from what I think is correct. The DV is a ratio: Number of…
Mick
  • 23
  • 2
1
vote
1 answer

What exactly does skimage.segmentation.slic() represent?

I am working on copy move forgery detection and got stuck on one of the algorithms. I have an RGB image of 532x800 pixels. When the following code is run: import matplotlib.pyplot as plt from skimage.segmentation import slic, mark_boundaries from…
1
vote
1 answer

Is it wrong to separate variable names and operators when writing code?

I tried to find if someone had asked this before, and they probably have, but since the words "separated" and "spaces" were involved, I could only find questions on how to separate a string with space characters. I guess what I mean is, when reading…
itiel
  • 27
  • 4
1
vote
0 answers

Sympy function does not recognize assumptions about variables

I have a piecewise function that differentiates between positive and negative arguments. When I feed it explicit numbers it goes well, but when I enter a symbol it does not evaluate the function, even though I defined the symbol as positive. This is…
1
vote
2 answers

Javascript execution: Understanding how Compilation and Interpretation steps work?

I recently learned how javascript executes the code in two steps: firstly the compilation and then the interpretation step. I learned that the compilation phase only registers (takes into account) the variables (and function name) in the entire code…
Mani Malhotra
  • 97
  • 1
  • 3
  • 12
1
vote
1 answer

Python Regression Tree interpretation

This is my code: regr = DecisionTreeRegressor(max_depth = 2) regr.fit(X_train, y_train) y_pred = regr.predict(X_test) mse = mean_squared_error(y_test, y_pred) r2 = r2_score(y_test, y_pred) print('DT: mse = '+ str(mse) + ' r2 = '+…
booklover
  • 43
  • 6
1
vote
0 answers

How can I implement the Connection Weight Product model interpretability method in Python?

I want to interpret my Keras Tensorflow model using Olden's Connection Weight Product method I know there is a Package available for it in R but is there a way to implement this method natively in Python? Thank you so much! Alternatively, how would…
1 2
3
11 12