mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
modify prompts to run kaggle loops (#266)
This commit is contained in:
@@ -531,7 +531,6 @@ def feedback_window():
|
||||
)
|
||||
|
||||
|
||||
@st.fragment
|
||||
def evolving_window():
|
||||
title = "Development🛠️" if isinstance(state.scenario, SIMILAR_SCENARIOS) else "Development🛠️ (evolving coder)"
|
||||
st.subheader(title, divider="green", anchor="_development")
|
||||
|
||||
@@ -20,7 +20,7 @@ def fit(X_train: pd.DataFrame, y_train: pd.DataFrame, X_valid: pd.DataFrame, y_v
|
||||
|
||||
# TODO: for quick running....
|
||||
params = {}
|
||||
num_round = 2
|
||||
num_round = 50
|
||||
|
||||
evallist = [(dtrain, "train"), (dvalid, "eval")]
|
||||
bst = xgb.train(params, dtrain, num_round, evallist)
|
||||
|
||||
@@ -96,6 +96,9 @@ kg_feature_interface: |-
|
||||
2. Ensure that the index of the output DataFrame matches the index of the original DataFrame. For example:
|
||||
Incorrect: `normalized_df = pd.DataFrame(normalized_features, columns=X.columns)`
|
||||
Correct: `normalized_df = pd.DataFrame(normalized_features, columns=X.columns, index=X.index)`
|
||||
3. Ensure consistency in column count across train, validation, and test sets post-feature engineering. For example, fit PCA on the training set and apply the same transformation to validation and test sets to keep the number of columns aligned, and use OneHotEncoder may also cause different number of columns.
|
||||
4. Ensure that the generation of new features does not drastically increase the number of columns, which can slow down data processing. For example, avoid creating pairwise interactions for all features, as this would lead to a quadratic increase in the number of columns.
|
||||
5. Avoids raising a `ValueError` or any other exceptions that could interrupt the main program's flow. The code should not include checks that could potentially lead to a `ValueError`. Instead, focus on writing robust and fault-tolerant feature engineering functions that handle edge cases and missing data gracefully, without stopping the program.
|
||||
|
||||
kg_model_interface: |-
|
||||
Your code should contain several parts:
|
||||
|
||||
Reference in New Issue
Block a user