Posts by Victor Capone • 414 points
16 posts
-
0
votes2
answers354
viewsA: Tensorflow - What is the best model to perform real-grade training?
Assuming you followed the tutorial correctly, the problem may come from two places: Data: few data, incomplete data, unbalanced dataset Hyperparameters Let’s start with data: networks deep Learning…
-
1
votes1
answer242
viewsA: How to group numeric sequences?
If the number you identify is always the last 3 (or a fixed number of digits from the end) l = ["000034200100", "000034200200", "000034200300", "000034200400", "000034200500"] d = {} #Vamos salvar…
-
1
votes1
answer119
viewsA: Creating a CSV from 3 CSV tables
If I understand correctly you have two dataframes A and B and you want to create a new dataframe with the columns of A and B, you can do this on pandas using pd.concat import pandas as pd dataA =…
-
0
votes1
answer221
viewsA: Algorithm for connecting dots on a graph with curved lines
What you want is an interpolation of the points. This consists of finding a function f(x) that given n points P1,P2,...,Pn, f(x) pass through all points. How is it done? Let’s think of the simplest…
-
0
votes1
answer264
viewsA: Matrix - Python
Suppose you have a list of tuples that indicate the position of each ship pos_naves = [(4,3), (5,3), (6,3)] Where pos_naves[1] = (4,3) gives the position of the ship 1 (x=4, y=3), as you already…
-
0
votes1
answer132
viewsA: Preorder Iterative - Binary Search Tree
It seems that the problem is the following,note that, in its original function, you make a call queue.enqueue(node.key) but for the iterative method you are trying to do queue.enqueue(node.left);…
-
0
votes1
answer108
viewsA: Doubt regarding the Minimax algorithm
The Minimax Algorithm is great in the sense that it will always make the move that minimizes the maximum loss (so it’s called Minimax), this fact is independent of how the other player plays, of…
-
1
votes1
answer531
viewsA: Cycles in graphs
For the in-depth search you can use the parethetic notation, to help visualize the logic of the algorithm, when we visit a u node, we open a parentheses (u and when the recursion is returned to u,…
-
3
votes1
answer198
viewsA: How to implement the "evaluate()" and "successor()" method of the Slope Rise algorithm?
If I understand correctly, the method sucessor() gives you a list of cities to be evaluated by the method avaliar(), that should return the cost of your solution, that is, the distance that would be…
-
0
votes1
answer207
viewsA: Table Hash with quadratic method
The position 0 of your table will be found for insertion smoothly, whenever the hash value of an object is a multiple of the table size, for example, let’s assume that you have a table of 17…
-
0
votes1
answer401
viewsA: Creating data set for sklearn with dataframe pandas
Sklearn’s Logistic regression is used for sorting and implementing that method that is able to distinguish between two different classes (eg.: sick and healthy), so that it works the call of the…
-
0
votes1
answer134
viewsA: Timestamp without using.time()
Well, according to [ https://en.wikipedia.org/wiki/Timestamp ] There are several Timestamp formats, if you already have the date and time information, as in the question, you can look for a format…
luaanswered Victor Capone 414 -
2
votes1
answer261
viewsA: How to read JSON with moon?
This link is for a lib in Pure moon [http://regex.info/code/JSON.lua] to make the JSON Encode/Decode, already used in production and works extremely well, in addition the code is commented and is…
luaanswered Victor Capone 414 -
3
votes1
answer1095
viewsA: Transform query into dataframe [sqlalchemy + pandas]
From the documentation of Pandas: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_sql_query.html the function pd.read_sql_query takes as parameters a string or a Sqlalchemy…
-
5
votes1
answer138
viewsA: PHP implode on LUA
From what I understand (correct me if I’m wrong), you need a function that given a vector V and a separator S, returns a string with each of the elements in V concatenated in order and separated by…
luaanswered Victor Capone 414 -
3
votes2
answers324
viewsA: How to make an object jump only once. in the LÖVE framework?
To check if the ball is in contact with the ground (or whatever) you need to define the callback functions for the object collisions g = true w = love.physics.newWorld(0, 10, true)…