> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tabsutra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MAP@k of the lists of one date, against rankings that need no training



## OpenAPI

````yaml /api-reference/openapi.json post /v1/databases/{database_id}/evaluate-recommend
openapi: 3.1.0
info:
  title: tabSutra API
  version: '1.0'
  description: >-
    One pretrained model for forecasting, classification, regression and
    recommendation on tables and databases.
servers:
  - url: https://api.tabsutra.com
security:
  - bearerAuth: []
paths:
  /v1/databases/{database_id}/evaluate-recommend:
    post:
      summary: MAP@k of the lists of one date, against rankings that need no training
      operationId: evaluate_recommend_v1_databases__database_id__evaluate_recommend_post
      parameters:
        - name: database_id
          in: path
          required: true
          schema:
            type: string
            title: Database Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecommendEvaluateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    RecommendEvaluateRequest:
      properties:
        source_table:
          type: string
          title: Source Table
        dest_table:
          type: string
          title: Dest Table
        window_days:
          type: number
          exclusiveMinimum: 0
          title: Window Days
        k:
          type: integer
          maximum: 1000
          minimum: 1
          title: K
          default: 10
        link_table:
          anyOf:
            - type: string
            - type: 'null'
          title: Link Table
        links:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Links
        source_column:
          type: string
          title: Source Column
          default: ''
        dest_column:
          type: string
          title: Dest Column
          default: ''
        time_column:
          type: string
          title: Time Column
          description: 'With links: the column of their time.'
          default: ''
        at:
          anyOf:
            - type: string
            - type: 'null'
          title: At
          description: >-
            The date whose lists are scored (default: one window before the last
            link).
      type: object
      required:
        - source_table
        - dest_table
        - window_days
      title: RecommendEvaluateRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key, sent as ''Authorization: Bearer <key>''.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.