Nehad Hirmiz
Nehad Hirmiz
to_categorical() method returns an np array of type int32 The to_one_hot() method needs to be modified to match the output: def to_one_hot(labels, dimension = 46): results = np.zeros((len(labels), dimension))**.astype(np.int32)** for...
```python thread = {"configurable": {"thread_id": str(uuid.uuid4()), "search_api": "tavily", "planner_provider": "ollama", "planner_model": "llama3.2", "writer_provider": "ollama", "writer_model": "llama3.2", "max_search_depth": 1, "report_structure": REPORT_STRUCTURE, }} ``` Please note that to get this to work...