Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
@@ -9,4 +9,37 @@ license: mit
|
|
9 |
short_description: Position Auctions https://arxiv.org/abs/2506.03309
|
10 |
---
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
9 |
short_description: Position Auctions https://arxiv.org/abs/2506.03309
|
10 |
---
|
11 |
|
12 |
+
Position Auction Simulator
|
13 |
+
|
14 |
+
Auction Log Display: A new panel on the right side of the screen (#auctionLogContainer) will now display a running log of simulated auction events.
|
15 |
+
Bidder Simulation: Each "sponsored creative" now has an associated maxBid and a simulatedCTR is calculated for each potential creative-position pairing.
|
16 |
+
Automated Auction Cycle:
|
17 |
+
Every few seconds, an runAuctionCycle function is triggered.
|
18 |
+
For each unoccupied "placement position," it evaluates all available "sponsored creatives."
|
19 |
+
It calculates a "bid value" for each creative based on its maxBid, the simulatedCTR (higher if types match), and a small random factor.
|
20 |
+
The creative with the highest bid "wins" the auction for that position.
|
21 |
+
Visual Integration of Auctions:
|
22 |
+
When an automated auction places a creative, the visual changes (position marker color, size, creative removal) are the same as when you manually place one. This makes the central sculpture dynamically change based on these simulated auctions.
|
23 |
+
Logging: The auction log will show which creative won which position, its "bid," and its "simulated CTR."
|
24 |
+
User Interaction: You can still manually select creatives and place them. If you place a creative on a position, it effectively overrides or preempts the automated auction for that slot.
|
25 |
+
Refinements:
|
26 |
+
The attemptMatch function (for user clicks) and the new auction logic now use a shared function placeCreative to handle the actual placement and visual updates.
|
27 |
+
The scoring system remains tied to your direct interactions. The auction system is primarily for visual dynamism and to illustrate the concept of ongoing auctions.
|
28 |
+
I'll provide the updated HTML and JavaScript code.
|
29 |
+
|
30 |
+
Key changes to look for in the code:
|
31 |
+
|
32 |
+
HTML Structure: The main body is now a flex container to position the canvas and the new #auctionLogContainer side-by-side.
|
33 |
+
#auctionLogContainer CSS: Styles for the new log panel.
|
34 |
+
runAuctionCycle(): The core of the automated auction simulation.
|
35 |
+
addAuctionLogEntry(): Adds messages to the log display.
|
36 |
+
startAuctionSimulation() / stopAuctionSimulation(): Control the auction interval.
|
37 |
+
placeCreative(): Centralized function for placing creatives, used by both user interaction and the auction system.
|
38 |
+
Creative userData: Now includes maxBid.
|
39 |
+
Position userData: Now includes source ('user' or 'auction') and originalEmissiveHex.
|
40 |
+
Animation Loop: Unoccupied positions now have a more noticeable emissive pulse.
|
41 |
+
|
42 |
+
|
43 |
+
https://arxiv.org/abs/2506.03309
|
44 |
+
|
45 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|