This new C# 8.0 feature should come in handy and rounds out the handling of streaming data in straightforward way, taking advantage of all the good things we’ve come to know from Linq. So, read on to learn how to play with this. Project setup for new projects Install the latest .Net Core 3.1 (or […]
Convex Optimization in C#
CPLEX is a convex optimization toolkit for solving a wide variety of optimization problems. Convex optimization is a more general approach to solving mathematical optimization problems that encompasses classic linear programming, systems of equations, and least-squares techniques, along with quadratic linear/non-linear techniques. A very good reference on the subject can be found in Convex Optimization – […]
Writing Less C#
About 3 years ago I got interested in ML (machine learning) and quickly realized the “lingua franca” of ML was Python and the numerous tools used to massage data, apply it to ML algorithms, and create visualizations (Pandas, Numpy, Scikit-Learn, Scipy, Plotly, Matplotlib, etc.) One of the best features of Python is its brevity in […]
Default Dictionaries in C#
Python has a useful collection item, “defaultdict,” which initializes a default value when accessing key values that haven’t been added to the dictionary yet. It takes a user-provided function that will be called to initialize the value for new keys as they are accessed – this is useful for list values and other built in […]