Lev Kokotov

Results 60 issues of Lev Kokotov

### Steps to reproduce Pretty easy: ```ruby class MyTable < ActiveRecord::Base end MyTable.annotate("hello = world").scoped do MyTable.create(hello: 'world') end ``` ### Expected behavior I would like to see this in...

activerecord

Automatically route to the right shard based on: 1. if `Q` (simple query), `sharding_key = ` or comment that says `/* sharding_key = */` 2. if `P` (prepared, extended protocol),...

1. Add `search_path` configuration open to shards. 2. Fix showing incorrect shard when setting a shard to an unsupported number (just a display error bug).

- Log more errors - Calculate averages based on time actually spent between events calculations

When training on a dataset that has too many classes, e.g. Scikit's [diabetes](https://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_diabetes.html), `smartcore::linear::logistic_regression::LogisticRegression` runs into an infinite loop. Reproducible example attached. [main.rs.txt](https://github.com/smartcorelib/smartcore/files/9523201/main.rs.txt)

help wanted
triage

1. Add `update_params` method to `Bindings` which will update hyperparameters on loaded estimator. This is currently used for controlling XGBoost's concurrency (`nthread`). 2. Add `clear_cached` API method for removing loaded...

Just playing around with libtorch.

1. Add `MultiTenantMiddleware` to be able to use multiple databases proxied by PgCat. 2. Enable persistent database connections.

Potential fix for https://github.com/djc/bb8/issues/154 ### Problem `InternalsGuard` is problematic because of the deadlock. Using a `ReentrantLock` is not possible because both `put` and `drop` are holding a mutable reference to...