Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Unanswered
Hello! I'Ve Been Trying To Use Clearml For The First Time, But I Cannot Seem To Run The First Serving Model. First, I Run The Following In Powershell: >>> Clearml-Serving Create --Name "June Test" Log: Clearml-Serving - Cli For Launching Clearml Serving


In Python, I ran the following with many variation of the data:

import requests
from typing import Any
import numpy as np
import json

url = "
"

raw_input = json.dumps([1, 2])  # This becomes a JSON string like "[1, 2]"

response = requests.post(
    url=url,
    headers={
        'accept': 'application/json',
        'Content-Type': 'application/json'
    },
    json=raw_input
)

print(response.status_code, response.json())

And always got:

422 {'detail': "Error [<class 'ValueError'>] processing request: Expected 2D array, got scalar array instead:\narray={'x0': 1, 'x1': 2}.\nReshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample."}

or:

422 {'detail': [{'type': 'bytes_type', 'loc': ['body', 'bytes'], 'msg': 'Input should be a valid bytes', 'input': [{'x0': 1, 'x1': 2}], 'url': '
'}, {'type': 'dict_type', 'loc': ['body', 'dict[any,any]'], 'msg': 'Input should be a valid dictionary', 'input': [{'x0': 1, 'x1': 2}], 'url': '
  
  
Posted 2 months ago
49 Views
0 Answers
2 months ago
2 months ago