Skip to content

Commit

Permalink
Add support for contextual multi-armed bandits (#112)
Browse files Browse the repository at this point in the history
* Fetch and store bandit parameters (#85)

* bandit config store added

* fix typo

* test case

* feedback from PR

* Aaron/ff 2407/bandit evaluator (#88)

* don't fetch bandit parameters if no store provided

* stubbed methods for bandit evaluation

* failing attribute scoring test

* score actions tests passing

* clean up from rebase

* scoring working

* weights test in place

* tests passing

* feedback from PR

* Bandit selects and assigns action from weighted actions (#95)

* action selection working, but suspect

* failing JS test case

* shared test cases passing

* shared bandit tests passing

* intermediate test case passing

* fix test assignment weights

* bandit logger test

* handle when no actions

* tests passing

* changes from self-review of PR

* additional note for future PR

* remove comments from bandit logger interface

* feedback from PR

* fix remaining issues from rebase

* Update for updated shared test data (#104)

* update for shared test data updates

* get ready for updated sdk test data

* todo with failing test

* store bandit flag to action association

* rearrange parameters

* feedback from PR

* Handle explicitly bucketed numeric and categorical attributes  (#108)

* file names for test cases

* support explicitly bucketed attributes

* subject attribute test

* tests WIP

* final tests passing

* all tests passing

* need to export bandit logger interfaces

* feedback from PR

* featu: [Add support for exporting the configuration[ (FF-2437) (#90)

* featu: [Add support for exporting the configuration[ (FF-2437)

* rename getAll to entries

* getFlagConfigurations

* bump to 3.4.0

* bump feature version

* add bandit store setters to interface

---------

Co-authored-by: Leo Romanovsky <leoromanovsky@users.noreply.github.com>
  • Loading branch information
aarsilv and leoromanovsky committed Jul 3, 2024
1 parent e223b48 commit 3aef357
Show file tree
Hide file tree
Showing 18 changed files with 1,832 additions and 160 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eppo/js-client-sdk-common",
"version": "3.4.0",
"version": "3.5.0",
"description": "Eppo SDK for client-side JavaScript applications (base for both web and react native)",
"main": "dist/index.js",
"files": [
Expand Down Expand Up @@ -73,4 +73,4 @@
"pino": "^8.19.0",
"semver": "^7.5.4"
}
}
}
6 changes: 5 additions & 1 deletion src/api-endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BASE_URL as DEFAULT_BASE_URL, UFC_ENDPOINT } from './constants';
import { BASE_URL as DEFAULT_BASE_URL, UFC_ENDPOINT, BANDIT_ENDPOINT } from './constants';
import { IQueryParams } from './http-client';

interface IApiEndpointsParams {
Expand All @@ -23,4 +23,8 @@ export default class ApiEndpoints {
ufcEndpoint(): URL {
return this.endpoint(UFC_ENDPOINT);
}

banditParametersEndpoint(): URL {
return this.endpoint(BANDIT_ENDPOINT);
}
}
Loading

0 comments on commit 3aef357

Please sign in to comment.