« first day (4309 days earlier)      last day (2 days later) » 

00:02
0
Q: Optimize this code in python

phyAlphI am trying to implement a CART (classification and regression tree) algorithm in python. When it comes to find the best split I have this code: for col in X.shape[1]: sorted_indices = np.argsort(features[:, col]) sorted_features = features[sorted_indices, col] sorted_target = target[sorted_indic...

00:22
REFRESH! There are 5057 unanswered questions (93.4769 answered)
 
2 hours later…
02:07
If you have working code that you're looking to have peer-reviewed for improvements, your question belongs on Code Review instead, which was created specifically for that purpose. This site is for specific questions related to actual problems that you're having with code or use of a programmer's tool (IDE, compiler, etc.). — Ken White 12 secs ago
 
3 hours later…
05:36
0
Q: Java exception handling does not understand this code. how to build logic if interviewer ask me such questions

Somesh sanjay Diwanclass StackOverFlow extends Exception { public String toString() { return "Stack is Full"; } } class StackUnderFlow extends Exception { public String toString() { return "Stack is Empty"; } } class Stack { private int size; private int top=-1; ...

 
9 hours later…
14:20
Monking
 
1 hour later…
15:38
0
Q: Generating Time-based One Time Passcode

MichaelFollowing Wikipedia: Time-based one-time password and Wikipedia: HMAC-based one-time password, is this Rust implementation of the TOTP/HOTP algorithm correct? As far as I can see, this matches the Implementation from the Node OTPAuth library, however when testing using an Online Tool I am getting...

 
1 hour later…
16:46
17:21
possible answer invalidation by Somesh sanjay Diwan on question by Somesh sanjay Diwan: codereview.stackexchange.com/posts/295408/revisions
If you are having a specific problem that you need help with, then please update your post to explain that in more detail. Otherwise, if you just want someone to look over your code, then try CodeReview instead. — Remy Lebeau 23 secs ago
possible answer invalidation by Somesh sanjay Diwan on question by Somesh sanjay Diwan: codereview.stackexchange.com/posts/295408/revisions
possible answer invalidation by Somesh sanjay Diwan on question by Somesh sanjay Diwan: codereview.stackexchange.com/posts/295408/revisions
possible answer invalidation by Somesh sanjay Diwan on question by Somesh sanjay Diwan: codereview.stackexchange.com/posts/295408/revisions
possible answer invalidation by Somesh sanjay Diwan on question by Somesh sanjay Diwan: codereview.stackexchange.com/posts/295408/revisions
possible answer invalidation by Somesh sanjay Diwan on question by Somesh sanjay Diwan: codereview.stackexchange.com/posts/295408/revisions
18:14
-1
Q: Can someone help me with my C# text input

Jo LarsonI'm working with visual studio. I'm trying to get input from a textbox, convert it into an interger and use it to calculate the overall percentage of the total output. serviceAndLaborLabel.Text = service.ToString("C"); //get percentage input from parts textbox string input = partsTextBox.Text; d...

18:37
0
Q: Async Error Handling JS

dRevan25I'm trying to understand async error handling in node/express. I created a CustomError class. export class CustomError extends Error { constructor(message, statusCode) { super(message); this.statusCode = statusCode; this.status = `${statusCode}`.startsWith('4') ? 'Fail...

19:07
Monking
19:41
possible answer invalidation by DBJDBJ on question by DBJDBJ: codereview.stackexchange.com/posts/258964/revisions
possible answer invalidation by DBJDBJ on question by DBJDBJ: codereview.stackexchange.com/posts/258964/revisions
possible answer invalidation by DBJDBJ on question by DBJDBJ: codereview.stackexchange.com/posts/258964/revisions
possible answer invalidation by DBJDBJ on question by DBJDBJ: codereview.stackexchange.com/posts/258964/revisions
possible answer invalidation by DBJDBJ on question by DBJDBJ: codereview.stackexchange.com/posts/258964/revisions
possible answer invalidation by DBJDBJ on question by DBJDBJ: codereview.stackexchange.com/posts/258964/revisions
 
2 hours later…
22:13
@Duga I posted a comment, I have not rolled the code back, it is unclear whether the question is actually on-topic.
@Duga Rolled back. Commented about changing code after answers 4 years ago.
 
2 hours later…
23:50
0
Q: Optimize code with cython

phyAlphI am trying to optimize a code in python usinf cython. It contains methods to build a Cart (classification and regression tree), where features and target could be float or integer. I have this import numpy as np cimport numpy as np import random import math def calc_impurity(str criterion, np....


« first day (4309 days earlier)      last day (2 days later) »