Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
115 views

Is it safe to make training data and labels as global variables in C?

I'm trying to make this function called walk in C. The idea is that the function takes as parameters a point in space (represented by an array), a function (pointer), and a step size / learning rate ...
Mehdi Charife's user avatar
0 votes
1 answer
1k views

Is it bad design to pass around a dictionary of arguments to all your functions?

In my machine learning pipeline, I have all the arguments collected into a dictionary. args = {'save_model': True, 'learning_rate': 0.01, 'batch_size': 4, 'model': 'my_model', 'momentum': 0.9, '...
jss367's user avatar
  • 263
1 vote
2 answers
225 views

How to loosely couple chained algorithms

I have a search algorithm that is used in conjunction with a machine learning algorithm. I separated the two because I wanted to be able to swap out search algorithms on the fly. However, the coupling ...
electron_avalanche's user avatar
2 votes
2 answers
127 views

Create unique buckets for stream of entities based on constraints on the entity attributes

I have stream (magnitude 10s of millions) of entities, say Item which is modeled as below: class Item { String id; Double price; Double profitPercentage; Country originCountry; Country ...
Hav3n's user avatar
  • 131
2 votes
1 answer
1k views

Efficiently extracting data from pdf with a template system?

basically allow a user to label specific text in a pdf file. Use the label information to create a template, which a script uses to extract text from specific pdf. What would be a good pattern to use ...
user299709's user avatar