# Fraud Detection code using Strawberryfields

**URL:** <https://discuss.pennylane.ai/t/fraud-detection-code-using-strawberryfields/1030>\
**Category:** PennyLane Strawberry Fields\
**Created:** [May 10, 2021, 4:28am UTC](https://discuss.pennylane.ai/t/fraud-detection-code-using-strawberryfields/1030 "2021-05-10T04:28:48Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Tom\_Bromley](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/tom_bromley/32/129_2.png) [@Tom\_Bromley](https://discuss.pennylane.ai/u/Tom_Bromley)\
**Post date:** [May 31, 2021, 11:27am UTC](https://discuss.pennylane.ai/t/fraud-detection-code-using-strawberryfields/1030/12 "2021-05-31T11:27:42Z")

</div>

Hi @Satanik_Mitra!

> Why 10 features are chosen from the dataset, why can’t we choose 14 instead?

I believe we just used 10 to keep things manageable, and it may well work if you increase to 14 features. In fact, the [original dataset](https://www.kaggle.com/mlg-ulb/creditcardfraud) has 28 features, so you could include all of those as long as you ensure there are 14 features input into the quantum part of the network.

However, bear in mind that the 28 features are a result of a PCA, and (this needs to be double checked) the features are ordered by importance. We take the first 10 features, and each new feature added after that may have a diminished usefulness when training the model.

---

_[View the full topic](https://discuss.pennylane.ai/t/fraud-detection-code-using-strawberryfields/1030)._
