This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from llama_index.core import ( | |
VectorStoreIndex, | |
Settings, | |
StorageContext, | |
SimpleDirectoryReader, | |
) | |
from llama_index.readers.web import SimpleWebPageReader | |
from llama_index.vector_stores.lancedb import LanceDBVectorStore | |
from llama_index.llms.huggingface import HuggingFaceLLM |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Instructions | |
1. Build this PR and run: | |
```bash | |
python bench_missing_rf.py bench ~/bench_results_rf pr | |
``` | |
2. On main run: | |
```bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import pandas as pd | |
import seaborn as sns | |
results = pd.read_csv("results_backend.csv") | |
sns.set_theme(context="paper", font_scale=1.4) | |
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(8, 4), constrained_layout=True, sharey=True) | |
sns.barplot(y="backend", x="duration", data=results[results["method"] == "fit"], ax=ax1) | |
ax1.set_xlabel("duration (sec)") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Benchmark for early stopping with predefined metric strings. | |
```python | |
python bench_hist_early_stopping.py --problem classification | |
python bench_hist_early_stopping.py --problem regression | |
``` | |
""" | |
import argparse | |
from time import perf_counter |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Instructions | |
1. Build this PR and run: | |
```bash | |
python bench_missing.py bench ~/bench_results pr | |
``` | |
2. On main run: | |
```bash |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder