# SymbolicRegression -- two simple questions

**URL:** https://discourse.julialang.org/t/symbolicregression-two-simple-questions/119908
**Category:** Modelling & Simulations
**Created:** [September 26, 2024, 10:36am UTC](https://discourse.julialang.org/t/symbolicregression-two-simple-questions/119908 "2024-09-26T10:36:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)
#### Post date: [September 26, 2024, 10:36am UTC](https://discourse.julialang.org/t/symbolicregression-two-simple-questions/119908/1 "2024-09-26T10:36:34Z")

</div>

I figured out the answers.

---

<div class="post-metadata">

### Author: ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)
#### Post date: [September 29, 2024, 7:01am UTC](https://discourse.julialang.org/t/symbolicregression-two-simple-questions/119908/2 "2024-09-29T07:01:09Z")

</div>

Instead of removing the question, why not post the answer you figured out, such that others can find the solution?

---

<div class="post-metadata">

### Author: ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)
#### Post date: [September 29, 2024, 8:09am UTC](https://discourse.julialang.org/t/symbolicregression-two-simple-questions/119908/3 "2024-09-29T08:09:24Z")

</div>

The answers were, to some degree, trivial. And my questions didn’t seem to create much interest. But I can answer the questions.

1. Can SymbolicRegression have a single feature? Yes, of course. I haven’t used named tuples before, and did the trivial mistake of writing:

```julia
X = (x=x)

```

instead of

```julia
X = (x=x,)

```

where the latter works.

1. How can I stop SymbolicRegression.jl to create files `hall_of_fame_xxx.csv` and `hall_of_fame_xxx.csv.bkup` files? Answer:

```julia
model_sin = SRRegressor(
    ... 
    save_to_file=false,
)

```

Reason for wanting to not create these files… a new file is created every time I run the code, making a clutter of files. While this happened, I also started to have problems with syncing files to OneDrive. Perhaps a coincidence, but I wanted to avoid the chance of this. Perhaps I could specify which directory to save the files and make sure these are outside of of the directories synced by OneDrive.
