Posts by Klel • 95 points
11 posts
-
0
votes1
answer74
viewsQ: How to save peak detection outputs (Z-score algorithm) to a single file?
I would like the output of my program to be saved in a txt file with two columns, no parentheses. I tried to use a append (in the for, I believe on line 98 of the code) to join the outputs in a…
-
0
votes2
answers6769
viewsQ: Convert pandas data frame to array
I have a data that, from . txt, I converted to a Dataframe (DF) with pandas. For the various activities I performed it is very convenient to be a DF. There is only one column with values, beyond the…
-
1
votes0
answers139
viewsQ: Problems with neural network input data with scikit Learn
I would like to create a neural network that returns 1 (one) to a specific case and 0 (zero) to all others. The idea would be: import numpy as np import pandas as pd from sklearn.preprocessing…
-
3
votes1
answer5209
viewsQ: How to normalize data? Any sklearn library?
I need to normalize the data I have so that it stays between -1 and 1. I used Standardscaler, but the interval got longer. What other sklearn library could you use? There are several in sklearn, but…
-
0
votes2
answers76
viewsQ: How can the end of "for" be a user-defined variable?
In a for in C, we define "beginning, end and step increment". I know that in Python it is not so. I saw that it is called foreach. I wish the end of mine for is defined by the user. And that, at…
-
-1
votes1
answer59
viewsQ: Does the "sudo" command work in Debian?
I tried to execute the sudo in python and returned me "bash: sudo: command not found", what’s the problem? I’m trying to use matplotlib and I’m not getting it, so I tried to install, running: sudo…
-
-3
votes2
answers94
viewsQ: What does the expression "!(errS&errE)" do in the if?
In a piece of code I need to understand, a new syntax appeared to me on if: if (!(errS&errE)) { fprintf(stderr, "\nFALTA ARGUMENTOS\n"); if(!errS) fprintf(stderr, "-s NOME ARQUIVO SAIDA \n");…
-
1
votes1
answer93
viewsQ: How do the main function inputs work in C?
I’ve always used the main function as follows, creating other functions: int main() { . . . return 0; } How the inputs to the main function work? int main(int argc, char **argv){ We have a variable…
-
1
votes0
answers108
viewsQ: What is the difference between printf and fprintf in C?
My question is as simple as this: What is the difference between printf and fprintf in C? I saw answers for Java, but since I don’t know anything about Java I don’t know if it has to do with. For…
-
2
votes4
answers801
viewsQ: How to use switch in C?
I have to understand this code that my advisor gave me. The opt after switch is mandatory? The command break too? Why doesn’t it appear after the options case '?' and default? if( argc <= 1) {…
-
0
votes1
answer95
viewsQ: Installation Codeblocks Centos
I’m a beginner in programming, I only did one course in college. I would like to install Codeblocks on Centos 7 (on a college machine) to edit a C program, but I’m having a hard time. I downloaded…