Skip to content

Commit 3aef357

Browse files
Add support for contextual multi-armed bandits (#112)
* 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 <[email protected]>
1 parent e223b48 commit 3aef357

18 files changed

+1832
-160
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eppo/js-client-sdk-common",
3-
"version": "3.4.0",
3+
"version": "3.5.0",
44
"description": "Eppo SDK for client-side JavaScript applications (base for both web and react native)",
55
"main": "dist/index.js",
66
"files": [
@@ -73,4 +73,4 @@
7373
"pino": "^8.19.0",
7474
"semver": "^7.5.4"
7575
}
76-
}
76+
}

src/api-endpoints.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BASE_URL as DEFAULT_BASE_URL, UFC_ENDPOINT } from './constants';
1+
import { BASE_URL as DEFAULT_BASE_URL, UFC_ENDPOINT, BANDIT_ENDPOINT } from './constants';
22
import { IQueryParams } from './http-client';
33

44
interface IApiEndpointsParams {
@@ -23,4 +23,8 @@ export default class ApiEndpoints {
2323
ufcEndpoint(): URL {
2424
return this.endpoint(UFC_ENDPOINT);
2525
}
26+
27+
banditParametersEndpoint(): URL {
28+
return this.endpoint(BANDIT_ENDPOINT);
29+
}
2630
}

0 commit comments

Comments
 (0)